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.
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.setChatPermissionsrestrictChatMember.restrictChatMember.banChatSenderChat,unbanChatSenderChateditChatInviteLink,revokeChatInviteLinkcreateChatInviteLinkalready supported).getStarTransactions,getMyStarBalanceform-only signature → not cleanly reachable.getUserProfilePhotosuserId-first signature is awkward via passthrough.Related: #453, #448.