telegram-bot-api-topics-forums-and-threading
SKILL.md
Telegram Bot API: Topics, Forums, and Threading
Purpose
Use this skill when the bot must send or route messages by topic.
Core API surface
message_thread_idcreateForumTopic,editForumTopic,closeForumTopic,reopenForumTopic,deleteForumTopicunpinAllForumTopicMessages- general-topic management methods
- direct-messages topics
- private-chat topic support
Thread model
Telegram now has multiple thread-like contexts:
- forum topics in supergroups
- topics in private chats when enabled for the bot
- direct-message topics in channel direct-messages chats
Developer guidance
- Store topic context separately from chat context.
- Include topic identifiers in routing keys, permissions checks, and outbound message APIs.
- Keep handler logic topic-aware when reply chains matter.
- Distinguish:
- replying to a message
- sending into a topic
- acting on the topic object itself
Design patterns
- Per-topic workflow state
- Per-topic moderation queues
- AI assistants that isolate separate conversations by topic
- Team support channels where each case is mapped to a topic
Common mistakes
- Treating
chat_idalone as enough to address the destination. - Confusing forum topics with direct-message topics.
- Ignoring whether the bot has topic-management rights.
- Forgetting that edits, deletions, and chat actions may also need topic context.
Read next
02-getting-updates07-chat-types-membership-and-invites10-business-connections-and-suggested-posts
Weekly Installs
2
Repository
nzhulikov/teleg…t-skillsFirst Seen
12 days ago
Security Audits
Installed on
amp2
cline2
opencode2
cursor2
kimi-cli2
codex2