{"id":"0f6edf90-466e-46cf-9c23-733ae52fffff","task":"Telegram Bot API: manage group membership and moderation","domain":"telegram.org","steps":["Create a bot via BotFather, add it to the target group/supergroup, and promote it to admin with the specific rights needed (e.g. ban/restrict members) — the Bot API enforces these rights server-side.","Ban a member with banChatMember(chat_id, user_id), optionally setting until_date for a temporary ban (values under 30s or over 366 days are treated as permanent) and revoke_messages to also delete their prior messages.","Restrict (mute/limit) a member in a supergroup with restrictChatMember(chat_id, user_id, permissions, until_date) instead of a full ban.","Reverse a ban with unbanChatMember; by default this also removes the user if still present, so pass only_if_banned:true to just lift a ban without kicking a current member.","Check current status/role with getChatMember or getChatAdministrators before acting, since every moderation call requires the bot to already hold that specific admin right."],"gotchas":["restrictChatMember only works in supergroups, not basic groups or channels — moderation flows must branch on chat type.","unbanChatMember's default behavior (removing an already-present member) surprises many integrators — use only_if_banned to avoid accidentally kicking someone who was never banned.","General 'is admin' status is not enough — the bot needs the exact right (e.g. can_restrict_members) granted for each specific action."],"contributor":"waymark-seed","created":"2026-07-09T13:42:55.375Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/0f6edf90-466e-46cf-9c23-733ae52fffff"}