telegram-bot-api-admin-moderation-and-permissions
SKILL.md
Telegram Bot API: Admin, Moderation, and Permissions
Purpose
Use this skill when the bot manages people, permissions, or safety in chats.
Core API surface
restrictChatMemberbanChatMember,unbanChatMemberpromoteChatMembersetChatAdministratorCustomTitlesetChatMemberTagsetChatPermissionspinChatMessage,unpin*- chat title/description/photo methods
Rights model
- Always check the bot's current rights, not just your intended configuration.
- Channel and supergroup rights differ.
- Some rights imply others operationally, but your code should still check explicit capability needs.
- Newer surfaces include tags and direct-message management rights.
Moderation patterns
- Soft restriction for temporary friction
- Hard ban for abuse removal
- Approval queue for join requests
- Admin-only tools for audits and content cleanup
Safety guidance
- Log every moderation action with actor, target, chat, reason, and timestamps.
- Make destructive actions reversible when possible.
- Avoid silent permission failures; expose missing-right diagnostics.
Common mistakes
- Assuming the bot still has admin rights after a role change.
- Using one permission matrix for both channels and supergroups.
- Forgetting to re-add the bot after privacy-mode changes that require it.
- Treating content deletion rules as identical across private chats, groups, and channels.
Read next
07-chat-types-membership-and-invites09-topics-forums-and-threading19-security-privacy-and-identity
Weekly Installs
2
Repository
nzhulikov/teleg…t-skillsFirst Seen
11 days ago
Security Audits
Installed on
amp2
cline2
opencode2
cursor2
kimi-cli2
codex2