AGENT SKILL
minipostiz-telegram-setup
Telegram Bot API setup for minipostiz-cli — create bot via BotFather, get token + chat ID, store credentials
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- minipostiz-telegram-setup
- type
- setup
- description
- Telegram Bot API setup for minipostiz-cli — create bot via BotFather, get token + chat ID, store credentials
03 SKILL.md 正文
minipostiz-cli — Telegram Setup
Telegram posting uses a Bot. You need a bot token and the ID of the chat/channel to post to.
Commands
minipostiz-cli <resource> <action>— Execute minipostiz-cli commandsminipostiz auth set-x— Store X/Twitter OAuth 1.0a credentials (apiKey, apiSecret, accessToken, accessSecret)minipostiz auth set-bluesky— Store Bluesky credentials (handle + app password)minipostiz auth set-discord— Store Discord webhook URLminipostiz auth set-telegram— Store Telegram bot token and chat IDminipostiz auth set-mastodon— Store Mastodon instance URL and access tokenminipostiz auth set-devto— Store Dev.to API keyminipostiz auth set-linkedin— Store LinkedIn access token and person URNminipostiz auth set-reddit— Store Reddit OAuth credentials and target subredditminipostiz auth set-facebook— Store Facebook page access token and page IDminipostiz auth list— List all configured social media platform credentialsminipostiz auth remove— Remove stored credentials for a platformminipostiz auth verify— Verify stored credentials for a platform are validminipostiz post publish— Publish a message immediately to one or more social media platformsminipostiz post schedule— Schedule a post for future publication on a social media platformminipostiz schedule list— List scheduled posts, optionally filtered by platformminipostiz schedule cancel— Cancel a scheduled post by IDminipostiz history list— Show post history with optional platform and status filtersminipostiz platforms list— List all supported platforms and their auth requirementsminipostiz daemon start— Start the background scheduler daemonminipostiz daemon stop— Stop the background scheduler daemonminipostiz daemon status— Check if the scheduler daemon is runningminipostiz self status— Show minipostiz-cli system status: version, db path, platforms, daemon
What you need
| Credential | Flag |
|---|---|
| Bot Token | --botToken |
| Chat ID | --chatId |
Step 1 — Create a Bot via BotFather
- Open Telegram → search for @BotFather
- Send
/newbot - Follow prompts: enter a display name, then a username (must end in
bot) - Copy the token — format:
123456789:ABCdefGHIjklMNOpqrSTUvwxYZ
Store the token securely — it gives full control over your bot.
Step 2 — Get the Chat ID
The chat ID depends on where you want to post:
Option A — Post to a group or supergroup
- Add your bot to the group (search bot username → Add to Group)
- Send any message in the group
- Open in browser:
https://api.telegram.org/botTOKEN/getUpdates(replaceTOKENwith your bot token) - Find
"chat": {"id": -XXXXXXXXXX}— that negative number is your chat ID
Option B — Post to a channel
- Add your bot as an admin of the channel (Manage Channel → Administrators → Add Admin)
- Forward any message from the channel to @username_to_id_bot (or use getUpdates)
- Channel chat IDs are negative numbers starting with
-100
Option C — Post to yourself (DM)
- Send any message to your bot from your personal account
- Open:
https://api.telegram.org/botTOKEN/getUpdates - Find
"from": {"id": XXXXXXXXX}— that positive number is your personal chat ID
Step 3 — Store in minipostiz-cli
minipostiz auth --platform telegram \
--botToken "123456789:ABCdefGHIjklMNOpqrSTUvwxYZ" \
--chatId "-1001234567890"
# Or via supercli
sc minipostiz auth set-telegram \
--botToken "123456789:ABCdefGHIjklMNOpqrSTUvwxYZ" \
--chatId "-1001234567890"
Step 4 — Test
minipostiz auth verify --platform telegram
minipostiz publish --platform telegram --message "Hello from minipostiz-cli"
Troubleshooting
| Error | Cause | Fix |
|---|---|---|
chat not found |
Bot not in chat, or wrong chatId | Add bot to group/channel; re-check chatId from getUpdates |
Forbidden: bot can't send messages to the bot |
chatId is the bot's own ID | Use a group/channel ID, not the bot's ID |
Forbidden: bot is not a member |
Bot not added to channel | Add bot as admin in channel settings |
Unauthorized |
Invalid bot token | Regenerate via BotFather: /token → select your bot |
Token lifetime
Bot tokens do not expire unless revoked via BotFather (/revoke).
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
★ 57
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
★ 57
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
★ 57
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
★ 57
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
★ 57
quickstart
暂无简介
★ 57