From acedatacloud-content
Publish to your Telegram channel/group via a bot using the official Telegram Bot API — send text or photo posts, edit and delete messages, and verify the bot's access to a chat.
How this skill is triggered — by the user, by Claude, or both
Slash command
/acedatacloud-content:telegram-botWhen to use
Trigger when the user wants a Telegram BOT to post to their channel / group: send a text or photo message, edit or delete a message, or check that the bot is an admin of the target chat. Auth is a bot token from @BotFather; the bot must be an admin (with post rights) in the target channel/group. This acts as the bot, so confirm the text and target chat_id before sending publicly.
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Call the **official Telegram Bot API** with `curl + jq`. The bot token is
Call the official Telegram Bot API with curl + jq. The bot token is
injected as $TELEGRAMBOT_BOT_TOKEN; an optional default target chat is
$TELEGRAMBOT_CHAT_ID (e.g. @your_channel or a numeric id). Base URL:
https://api.telegram.org/bot$TELEGRAMBOT_BOT_TOKEN/<METHOD>.
Every response is JSON {"ok":true,"result":...} on success, or
{"ok":false,"error_code":<n>,"description":"<msg>"} on failure — always check
.ok and show description verbatim. Common failures: 401 Unauthorized = bad/
revoked token (reconnect the connector), 400 Bad Request: chat not found = wrong
chat_id, 403 Forbidden: bot is not a member of the channel chat / ... need administrator rights = add the bot to the channel as an admin with post rights,
429 with parameters.retry_after = rate-limited, wait that many seconds.
chat_id is @channelusername (public) or the numeric id (private channels/
groups, often negative like -1001234567890). Resolve/verify it with getChat.
BOT="https://api.telegram.org/bot$TELEGRAMBOT_BOT_TOKEN"
curl -sS "$BOT/getMe" | jq '{ok, bot: .result.username, name: .result.first_name}'
# confirm the bot can post to the target chat (must be admin in the channel):
CHAT="${TELEGRAMBOT_CHAT_ID:-@your_channel}"
curl -sS -G "$BOT/getChat" --data-urlencode "chat_id=$CHAT" \
| jq '{ok, type: .result.type, title: .result.title, error: .description}'
Confirm the text and target chat with the user before posting publicly. Text
is 1-4096 chars. Use parse_mode=HTML (simplest) or MarkdownV2.
CHAT="${TELEGRAMBOT_CHAT_ID:-@your_channel}"
curl -sS -G "$BOT/sendMessage" \
--data-urlencode "chat_id=$CHAT" \
--data-urlencode "text=<b>Hello</b> from the bot 👋 #ai" \
--data-urlencode "parse_mode=HTML" \
--data-urlencode "disable_web_page_preview=false" \
| jq '{ok, message_id: .result.message_id, error: .description}'
The public post URL for a channel is https://t.me/<channelusername>/<message_id>.
<b> <i> <u> <s> <a href> <code> <pre> <blockquote>.
Escape literal < > & as < > &._ * [ ] ( ) ~ \ > # + - = | { } . !with`.text via --data-urlencode so newlines/Cyrillic/emoji aren't mangled.CHAT="${TELEGRAMBOT_CHAT_ID:-@your_channel}"
curl -sS -G "$BOT/sendPhoto" \
--data-urlencode "chat_id=$CHAT" \
--data-urlencode "photo=https://cdn.example.com/pic.jpg" \
--data-urlencode "caption=<b>Caption</b> text" \
--data-urlencode "parse_mode=HTML" \
| jq '{ok, message_id: .result.message_id, error: .description}'
photo accepts an HTTPS URL (≤5 MB, Telegram fetches it), a Telegram file_id,
or an uploaded file. Caption is 0-1024 chars. For an album use sendMediaGroup.
# edit text (same chat_id + message_id)
curl -sS -G "$BOT/editMessageText" \
--data-urlencode "chat_id=$CHAT" --data-urlencode "message_id=123" \
--data-urlencode "text=Updated text" --data-urlencode "parse_mode=HTML" \
| jq '{ok, error: .description}'
# delete a message
curl -sS -G "$BOT/deleteMessage" \
--data-urlencode "chat_id=$CHAT" --data-urlencode "message_id=123" \
| jq '{ok, error: .description}'
deleteMessage works for the bot's own channel posts within 48 hours (and needs
can_delete_messages/post rights).
403. getChat first to confirm access.-100...); prefer @username
for public channels.429
(respect parameters.retry_after).telegram (MTProto) connector instead.npx claudepluginhub acedatacloud/skills --plugin acedatacloud-contentSends messages, images, polls, and formatted content to Telegram channels/groups via the Bot API. Guides bot creation, credential setup, and chat ID retrieval.
Provides Telegram bot tools to send messages, media, locations, contacts, and polls; edit, delete, forward, copy, and pin messages; resolve chats, members, and files. Use when the user mentions Telegram or wants a bot to post or manage content.
Builds and manages Telegram bots via the Bot API: create bots, send messages with keyboards, handle photos and inline interactions.