[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FT9F5AY68MFZAHDCV3ETYA":3,"skill-same:01M6FT9F5AY68MFZAHDCV3ETYA":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":27,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":6,"ownerHtmlUrl":65,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":66,"install":67,"resources":80},"01M6FT9F5AY68MFZAHDCV3ETYA","telegram-create-bot",null,"Build and manage Telegram bots via the Telegram Bot API. Create bots, send messages, handle webhooks, manage groups and channels.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fjordanprater\u002Ftelegram-create-bot\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"telegram","telegram create bot","bot","create","https","messages","api","curl","jq","telegram bot","webhooks","manage","build","bots","token","via","org","channels","core","2026-11-10 10:12:30",false,"---\nname: telegram-create-bot\ndescription: Build and manage Telegram bots via the Telegram Bot API. Create bots, send messages, handle webhooks, manage groups and channels.\nhomepage: https:\u002F\u002Fcore.telegram.org\u002Fbots\u002Fapi\nmetadata: {\"clawdbot\":{\"emoji\":\"?\",\"requires\":{\"bins\":[\"jq\",\"curl\"],\"env\":[\"TELEGRAM_BOT_TOKEN\"]}}}\n---\n\n# Telegram Create Bot\n\nBuild and manage Telegram bots directly from OpenClaw.\n\n## Setup\n\n1. Open Telegram and message [@BotFather](https:\u002F\u002Ft.me\u002FBotFather)\n2. Send `\u002Fnewbot` and follow the prompts to create your bot\n3. Copy the bot token (looks like `123456789:ABCdefGHIjklMNOpqrsTUVwxyz`)\n4. Set environment variable:\n   ```bash\n   export TELEGRAM_BOT_TOKEN=\"your-bot-token\"\n   ```\n\n## API Base URL\n\nAll requests go to:\n```\nhttps:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FMETHOD_NAME\n```\n\n## Usage\n\n### Bot Information\n\n#### Get bot info\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetMe\" | jq\n```\n\n#### Get bot commands\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetMyCommands\" | jq\n```\n\n#### Set bot commands\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsetMyCommands\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"commands\": [\n      {\"command\": \"start\", \"description\": \"Start the bot\"},\n      {\"command\": \"help\", \"description\": \"Show help message\"},\n      {\"command\": \"settings\", \"description\": \"Bot settings\"}\n    ]\n  }' | jq\n```\n\n### Sending Messages\n\n#### Send text message\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"text\": \"Hello from Clawdbot!\",\n    \"parse_mode\": \"HTML\"\n  }' | jq\n```\n\n#### Send message with inline keyboard\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"text\": \"Choose an option:\",\n    \"reply_markup\": {\n      \"inline_keyboard\": [\n        [{\"text\": \"Option 1\", \"callback_data\": \"opt1\"}, {\"text\": \"Option 2\", \"callback_data\": \"opt2\"}],\n        [{\"text\": \"Visit Website\", \"url\": \"https:\u002F\u002Fexample.com\"}]\n      ]\n    }\n  }' | jq\n```\n\n#### Send message with reply keyboard\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"text\": \"Choose from keyboard:\",\n    \"reply_markup\": {\n      \"keyboard\": [\n        [{\"text\": \"Button 1\"}, {\"text\": \"Button 2\"}],\n        [{\"text\": \"Send Location\", \"request_location\": true}]\n      ],\n      \"resize_keyboard\": true,\n      \"one_time_keyboard\": true\n    }\n  }' | jq\n```\n\n#### Send photo\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendPhoto\" \\\n  -F \"chat_id=CHAT_ID\" \\\n  -F \"photo=@\u002Fpath\u002Fto\u002Fimage.jpg\" \\\n  -F \"caption=Photo caption here\" | jq\n```\n\n#### Send photo by URL\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendPhoto\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"photo\": \"https:\u002F\u002Fexample.com\u002Fimage.jpg\",\n    \"caption\": \"Image from URL\"\n  }' | jq\n```\n\n#### Send document\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendDocument\" \\\n  -F \"chat_id=CHAT_ID\" \\\n  -F \"document=@\u002Fpath\u002Fto\u002Ffile.pdf\" \\\n  -F \"caption=Here is your document\" | jq\n```\n\n#### Send location\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendLocation\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"latitude\": 40.7128,\n    \"longitude\": -74.0060\n  }' | jq\n```\n\n### Getting Updates\n\n#### Get updates (polling)\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetUpdates\" | jq\n```\n\n#### Get updates with offset (mark as read)\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetUpdates?offset=UPDATE_ID\" | jq\n```\n\n#### Get updates with timeout (long polling)\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetUpdates?timeout=30\" | jq\n```\n\n### Webhooks\n\n#### Set webhook\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsetWebhook\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"url\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\",\n    \"allowed_updates\": [\"message\", \"callback_query\"]\n  }' | jq\n```\n\n#### Get webhook info\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetWebhookInfo\" | jq\n```\n\n#### Delete webhook\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FdeleteWebhook\" | jq\n```\n\n### Chat Management\n\n#### Get chat info\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetChat?chat_id=CHAT_ID\" | jq\n```\n\n#### Get chat member count\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetChatMemberCount?chat_id=CHAT_ID\" | jq\n```\n\n#### Get chat administrators\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetChatAdministrators?chat_id=CHAT_ID\" | jq\n```\n\n#### Ban user from chat\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FbanChatMember\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"user_id\": USER_ID\n  }' | jq\n```\n\n#### Unban user\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FunbanChatMember\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"user_id\": USER_ID,\n    \"only_if_banned\": true\n  }' | jq\n```\n\n### Message Management\n\n#### Edit message text\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FeditMessageText\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"message_id\": MESSAGE_ID,\n    \"text\": \"Updated message text\"\n  }' | jq\n```\n\n#### Delete message\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FdeleteMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"message_id\": MESSAGE_ID\n  }' | jq\n```\n\n#### Pin message\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FpinChatMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"message_id\": MESSAGE_ID\n  }' | jq\n```\n\n#### Forward message\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FforwardMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"TARGET_CHAT_ID\",\n    \"from_chat_id\": \"SOURCE_CHAT_ID\",\n    \"message_id\": MESSAGE_ID\n  }' | jq\n```\n\n### Callback Queries\n\n#### Answer callback query\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FanswerCallbackQuery\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"callback_query_id\": \"CALLBACK_QUERY_ID\",\n    \"text\": \"Button clicked!\",\n    \"show_alert\": false\n  }' | jq\n```\n\n## Notes\n\n- **Chat ID**: Can be positive (user) or negative (group\u002Fchannel). Get it from updates or use @userinfobot\n- **Parse modes**: `HTML`, `Markdown`, `MarkdownV2`\n- **Rate limits**: ~30 messages\u002Fsecond to different chats, 1 message\u002Fsecond to same chat\n- **File limits**: Photos up to 10MB, documents up to 50MB\n- **Bot permissions**: Bots can't message users first - user must \u002Fstart the bot\n\n## HTML Formatting\n\n```html\n\u003Cb>bold\u003C\u002Fb>\n\u003Ci>italic\u003C\u002Fi>\n\u003Cu>underline\u003C\u002Fu>\n\u003Cs>strikethrough\u003C\u002Fs>\n\u003Ccode>inline code\u003C\u002Fcode>\n\u003Cpre>code block\u003C\u002Fpre>\n\u003Ca href=\"https:\u002F\u002Fexample.com\">link\u003C\u002Fa>\n\u003Ctg-spoiler>spoiler\u003C\u002Ftg-spoiler>\n```\n\n## Examples\n\n### Simple echo bot (bash script)\n```bash\n#!\u002Fbin\u002Fbash\nOFFSET=0\nwhile true; do\n  UPDATES=$(curl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetUpdates?offset=$OFFSET&timeout=30\")\n  \n  for UPDATE in $(echo \"$UPDATES\" | jq -c '.result[]'); do\n    UPDATE_ID=$(echo \"$UPDATE\" | jq '.update_id')\n    CHAT_ID=$(echo \"$UPDATE\" | jq '.message.chat.id')\n    TEXT=$(echo \"$UPDATE\" | jq -r '.message.text')\n    \n    if [ \"$TEXT\" != \"null\" ]; then\n      curl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendMessage\" \\\n        -H \"Content-Type: application\u002Fjson\" \\\n        -d \"{\\\"chat_id\\\": $CHAT_ID, \\\"text\\\": \\\"You said: $TEXT\\\"}\"\n    fi\n    \n    OFFSET=$((UPDATE_ID + 1))\n  done\ndone\n```\n\n### Get your chat ID\n```bash\n# 1. Send a message to your bot\n# 2. Run this to see your chat ID:\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetUpdates\" | jq '.result[-1].message.chat.id'\n```\n\n### Send to channel\n```bash\n# Use @channelname or channel ID (starts with -100)\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"@your_channel_name\",\n    \"text\": \"Channel announcement!\"\n  }' | jq\n```\n\n## Useful Resources\n\n- [Bot API Documentation](https:\u002F\u002Fcore.telegram.org\u002Fbots\u002Fapi)\n- [BotFather Commands](https:\u002F\u002Fcore.telegram.org\u002Fbots#botfather)\n- [Bot API Changelog](https:\u002F\u002Fcore.telegram.org\u002Fbots\u002Fapi-changelog)\n","# Telegram Create Bot\n\nBuild and manage Telegram bots directly from OpenClaw.\n\n## Setup\n\n1. Open Telegram and message [@BotFather](https:\u002F\u002Ft.me\u002FBotFather)\n2. Send `\u002Fnewbot` and follow the prompts to create your bot\n3. Copy the bot token (looks like `123456789:ABCdefGHIjklMNOpqrsTUVwxyz`)\n4. Set environment variable:\n   ```bash\n   export TELEGRAM_BOT_TOKEN=\"your-bot-token\"\n   ```\n\n## API Base URL\n\nAll requests go to:\n```\nhttps:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FMETHOD_NAME\n```\n\n## Usage\n\n### Bot Information\n\n#### Get bot info\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetMe\" | jq\n```\n\n#### Get bot commands\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetMyCommands\" | jq\n```\n\n#### Set bot commands\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsetMyCommands\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"commands\": [\n      {\"command\": \"start\", \"description\": \"Start the bot\"},\n      {\"command\": \"help\", \"description\": \"Show help message\"},\n      {\"command\": \"settings\", \"description\": \"Bot settings\"}\n    ]\n  }' | jq\n```\n\n### Sending Messages\n\n#### Send text message\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"text\": \"Hello from Clawdbot!\",\n    \"parse_mode\": \"HTML\"\n  }' | jq\n```\n\n#### Send message with inline keyboard\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"text\": \"Choose an option:\",\n    \"reply_markup\": {\n      \"inline_keyboard\": [\n        [{\"text\": \"Option 1\", \"callback_data\": \"opt1\"}, {\"text\": \"Option 2\", \"callback_data\": \"opt2\"}],\n        [{\"text\": \"Visit Website\", \"url\": \"https:\u002F\u002Fexample.com\"}]\n      ]\n    }\n  }' | jq\n```\n\n#### Send message with reply keyboard\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"text\": \"Choose from keyboard:\",\n    \"reply_markup\": {\n      \"keyboard\": [\n        [{\"text\": \"Button 1\"}, {\"text\": \"Button 2\"}],\n        [{\"text\": \"Send Location\", \"request_location\": true}]\n      ],\n      \"resize_keyboard\": true,\n      \"one_time_keyboard\": true\n    }\n  }' | jq\n```\n\n#### Send photo\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendPhoto\" \\\n  -F \"chat_id=CHAT_ID\" \\\n  -F \"photo=@\u002Fpath\u002Fto\u002Fimage.jpg\" \\\n  -F \"caption=Photo caption here\" | jq\n```\n\n#### Send photo by URL\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendPhoto\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"photo\": \"https:\u002F\u002Fexample.com\u002Fimage.jpg\",\n    \"caption\": \"Image from URL\"\n  }' | jq\n```\n\n#### Send document\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendDocument\" \\\n  -F \"chat_id=CHAT_ID\" \\\n  -F \"document=@\u002Fpath\u002Fto\u002Ffile.pdf\" \\\n  -F \"caption=Here is your document\" | jq\n```\n\n#### Send location\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendLocation\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"latitude\": 40.7128,\n    \"longitude\": -74.0060\n  }' | jq\n```\n\n### Getting Updates\n\n#### Get updates (polling)\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetUpdates\" | jq\n```\n\n#### Get updates with offset (mark as read)\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetUpdates?offset=UPDATE_ID\" | jq\n```\n\n#### Get updates with timeout (long polling)\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetUpdates?timeout=30\" | jq\n```\n\n### Webhooks\n\n#### Set webhook\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsetWebhook\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"url\": \"https:\u002F\u002Fyour-server.com\u002Fwebhook\",\n    \"allowed_updates\": [\"message\", \"callback_query\"]\n  }' | jq\n```\n\n#### Get webhook info\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetWebhookInfo\" | jq\n```\n\n#### Delete webhook\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FdeleteWebhook\" | jq\n```\n\n### Chat Management\n\n#### Get chat info\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetChat?chat_id=CHAT_ID\" | jq\n```\n\n#### Get chat member count\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetChatMemberCount?chat_id=CHAT_ID\" | jq\n```\n\n#### Get chat administrators\n```bash\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetChatAdministrators?chat_id=CHAT_ID\" | jq\n```\n\n#### Ban user from chat\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FbanChatMember\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"user_id\": USER_ID\n  }' | jq\n```\n\n#### Unban user\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FunbanChatMember\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"user_id\": USER_ID,\n    \"only_if_banned\": true\n  }' | jq\n```\n\n### Message Management\n\n#### Edit message text\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FeditMessageText\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"message_id\": MESSAGE_ID,\n    \"text\": \"Updated message text\"\n  }' | jq\n```\n\n#### Delete message\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FdeleteMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"message_id\": MESSAGE_ID\n  }' | jq\n```\n\n#### Pin message\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FpinChatMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"CHAT_ID\",\n    \"message_id\": MESSAGE_ID\n  }' | jq\n```\n\n#### Forward message\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FforwardMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"TARGET_CHAT_ID\",\n    \"from_chat_id\": \"SOURCE_CHAT_ID\",\n    \"message_id\": MESSAGE_ID\n  }' | jq\n```\n\n### Callback Queries\n\n#### Answer callback query\n```bash\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FanswerCallbackQuery\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"callback_query_id\": \"CALLBACK_QUERY_ID\",\n    \"text\": \"Button clicked!\",\n    \"show_alert\": false\n  }' | jq\n```\n\n## Notes\n\n- **Chat ID**: Can be positive (user) or negative (group\u002Fchannel). Get it from updates or use @userinfobot\n- **Parse modes**: `HTML`, `Markdown`, `MarkdownV2`\n- **Rate limits**: ~30 messages\u002Fsecond to different chats, 1 message\u002Fsecond to same chat\n- **File limits**: Photos up to 10MB, documents up to 50MB\n- **Bot permissions**: Bots can't message users first - user must \u002Fstart the bot\n\n## HTML Formatting\n\n```html\n\u003Cb>bold\u003C\u002Fb>\n\u003Ci>italic\u003C\u002Fi>\n\u003Cu>underline\u003C\u002Fu>\n\u003Cs>strikethrough\u003C\u002Fs>\n\u003Ccode>inline code\u003C\u002Fcode>\n\u003Cpre>code block\u003C\u002Fpre>\n\u003Ca href=\"https:\u002F\u002Fexample.com\">link\u003C\u002Fa>\n\u003Ctg-spoiler>spoiler\u003C\u002Ftg-spoiler>\n```\n\n## Examples\n\n### Simple echo bot (bash script)\n```bash\n#!\u002Fbin\u002Fbash\nOFFSET=0\nwhile true; do\n  UPDATES=$(curl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetUpdates?offset=$OFFSET&timeout=30\")\n  \n  for UPDATE in $(echo \"$UPDATES\" | jq -c '.result[]'); do\n    UPDATE_ID=$(echo \"$UPDATE\" | jq '.update_id')\n    CHAT_ID=$(echo \"$UPDATE\" | jq '.message.chat.id')\n    TEXT=$(echo \"$UPDATE\" | jq -r '.message.text')\n    \n    if [ \"$TEXT\" != \"null\" ]; then\n      curl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendMessage\" \\\n        -H \"Content-Type: application\u002Fjson\" \\\n        -d \"{\\\"chat_id\\\": $CHAT_ID, \\\"text\\\": \\\"You said: $TEXT\\\"}\"\n    fi\n    \n    OFFSET=$((UPDATE_ID + 1))\n  done\ndone\n```\n\n### Get your chat ID\n```bash\n# 1. Send a message to your bot\n# 2. Run this to see your chat ID:\ncurl -s \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FgetUpdates\" | jq '.result[-1].message.chat.id'\n```\n\n### Send to channel\n```bash\n# Use @channelname or channel ID (starts with -100)\ncurl -s -X POST \"https:\u002F\u002Fapi.telegram.org\u002Fbot$TELEGRAM_BOT_TOKEN\u002FsendMessage\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\n    \"chat_id\": \"@your_channel_name\",\n    \"text\": \"Channel announcement!\"\n  }' | jq\n```\n\n## Useful Resources\n\n- [Bot API Documentation](https:\u002F\u002Fcore.telegram.org\u002Fbots\u002Fapi)\n- [BotFather Commands](https:\u002F\u002Fcore.telegram.org\u002Fbots#botfather)\n- [Bot API Changelog](https:\u002F\u002Fcore.telegram.org\u002Fbots\u002Fapi-changelog)\n",{"name":5,"homepage":52,"metadata":53,"description":7},"https:\u002F\u002Fcore.telegram.org\u002Fbots\u002Fapi",{"clawdbot":54},{"emoji":55,"requires":56},"?",{"env":57,"bins":59},[58],"TELEGRAM_BOT_TOKEN",[36,35],"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fjordanprater\u002Ftelegram-create-bot",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add kbarbel640-del\u002Fskills --skill telegram-create-bot",{"tool":73,"command":74},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill telegram-create-bot",{"tool":76,"command":77},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill telegram-create-bot","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fjordanprater\u002Ftelegram-create-bot\u002FSKILL.md",true,[81],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"_meta.json","REFERENCE","参考文档",296,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fjordanprater\u002Ftelegram-create-bot\u002F_meta.json",[88,115,140,160,166,186],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":97,"publishedAt":47},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[94],{"categoryNo":95,"categoryName":96,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000036","内容创作者",[98,99,34,100,101,102,103,104,105,106,107,108,109,110,111,112,32,113,114],"crowd prompting","prompting","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","content","ai agents",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":124,"publishedAt":47},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[121],{"categoryNo":122,"categoryName":123,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[125,34,126,127,128,129,31,130,131,30,132,133,134,135,136,137,138,104,139],"dilemm ai","arena","analyze","browser","openclaw agent","automation","browser automation","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":149,"publishedAt":47},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[146],{"categoryNo":147,"categoryName":148,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000021","资料检索与研究",[150,151,152,153,154,155,156,100,157,137,139,158,34,159,43],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http",{"skillNo":161,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":162,"categories":163,"keywords":165,"publishedAt":47},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[164],{"categoryNo":147,"categoryName":148,"taxonomyType":20,"taxonomyTypeDesc":21},[153,152,151,150,43,155,156,100,154,137,139,157,158,34,159],{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":47},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[173,174,175,176,177,178,179,180,181,182,183,184,185],"git","summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":187,"name":188,"nameZh":6,"description":189,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":190,"categories":191,"keywords":196,"publishedAt":47},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[192,193],{"categoryNo":122,"categoryName":123,"taxonomyType":20,"taxonomyTypeDesc":21},{"categoryNo":194,"categoryName":195,"taxonomyType":25,"taxonomyTypeDesc":26},"01JBSEEDCAT000000000000037","律师与法务",[197,198,199,200,100,201,202,60,203,158,204,205,206,207,208,32,209,210,211],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]