Skip to content

Tier 2: implement useful Bot API methods (setChatPermissions, sender-chat ban, invite-link edit/revoke, Stars accounting) #460

Description

@windkh

Tier 2 — Useful methods, reachable via passthrough but worth a thin wrapper

From the V18 coverage analysis (#453). These work through the generic (chatId, content, options) passthrough but have awkward semantics; a dedicated type + a small ergonomics shim would make them first-class.

Method(s) Bot API Why Ergonomics note
setChatPermissions 4.4 Completes the group-admin story alongside restrictChatMember. Reuse the same flat-permissions migration shim as restrictChatMember.
banChatSenderChat, unbanChatSenderChat 5.7 Anti-spam staple — block/unblock channels posting in a group. Works via passthrough; add a documented type.
editChatInviteLink, revokeChatInviteLink 5.1 Round out the invite-link lifecycle (createChatInviteLink already supported).
getStarTransactions, getMyStarBalance 7.5 / 9.1 Accounting/monitoring for bots taking Stars. form-only signature → not cleanly reachable.
getUserProfilePhotos ≤3.0 Common "who is this user" lookup. userId-first signature is awkward via passthrough.

Related: #453, #448.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions