telegram-bot-api-chat-types-membership-and-invites
SKILL.md
Telegram Bot API: Chat Types, Membership, and Invites
Purpose
Use this skill when a bot spans multiple Telegram chat contexts.
Chat-type model
- Private chat
- Group
- Supergroup
- Channel
- Channel direct-messages chat
- Forum-enabled supergroup
Core API surface
getChat,getChatMember,getChatMemberCount,getChatAdministratorsChat,ChatFullInfo,ChatMember*- invite-link methods
- join-request methods
leaveChat
Developer guidance
- Normalize chat-type behavior in your app layer.
- Use numeric chat IDs as stable identity, not titles or usernames.
- Expect capabilities to differ by chat type.
- Persist bot membership state because permissions can change at runtime.
Invite flows
- Primary invite links
- Additional invite links
- Join-request links
- Subscription invite links for channels
- Deep links such as
startgroup
Membership events
- Track
my_chat_memberfor the bot itself. - Track
chat_memberonly when you truly need member lifecycle events. - Use join-request updates when onboarding or approval logic matters.
Common mistakes
- Assuming usernames always exist.
- Ignoring group-to-supergroup migration IDs.
- Using public titles as identifiers.
- Treating channel chats and channel direct messages as the same thing.
Read next
08-admin-moderation-and-permissions09-topics-forums-and-threading10-business-connections-and-suggested-posts
Weekly Installs
2
Repository
nzhulikov/teleg…t-skillsFirst Seen
11 days ago
Security Audits
Installed on
amp2
cline2
opencode2
cursor2
kimi-cli2
codex2