Outcome ('approve', 'decline', or 'queue')
OptionalqueryId: stringOptional query ID. If omitted, resolved from the update.
Promise<boolean>
Approve a request to join the chat
User ID
Promise<boolean>
Ban a user from the group.
User ID
Optionaloptions: Omit<BanChatMemberParams, "chat_id" | "user_id">Additional parameters
Promise<boolean>
Ban a channel from posting comments/interacting
Sender channel ID to ban
Optionaloptions: Omit<BanChatSenderChatParams, "chat_id" | "sender_chat_id">Additional parameters
Promise<boolean>
Close an open forum topic
OptionalmessageThreadId: numberThread ID. If omitted, resolved from the update.
Promise<boolean>
Close the general topic in a supergroup
Promise<boolean>
Create a new forum topic in a supergroup
Topic name
Optionaloptions: Omit<CreateForumTopicParams, "chat_id" | "name">Additional parameters
Promise<ForumTopic>
Create an additional invite link
Optionaloptions: Omit<CreateChatInviteLinkParams, "chat_id">Additional parameters
Promise<ChatInviteLink>
Decline a request to join the chat
User ID
Promise<boolean>
Delete up to 10,000 recent reactions added by a specific user in the group
OptionaluserId: numberUser ID whose reactions will be removed. If omitted, resolved from the update.
Promise<boolean>
Delete a forum topic and all its messages
OptionalmessageThreadId: numberThread ID. If omitted, resolved from the update.
Promise<boolean>
Delete a message in the group
OptionalmessageId: numberMessage ID to delete. If omitted, resolved from the update.
Promise<boolean>
Delete reactions applied by a specific user on a message
User ID who put the reaction
OptionalmessageId: numberMessage ID. If omitted, resolved from the update.
Promise<boolean>
Delete multiple messages in the group
Array of message IDs
Promise<boolean>
Delete the group photo
Promise<boolean>
Delete the collective sticker set for the supergroup
Promise<boolean>
Edit a forum topic
Optionalname: stringOptional new topic name (0-128 characters). If omitted, the current name is kept.
OptionalmessageThreadId: numberThread ID. If omitted, resolved from the update.
Optionaloptions: Omit<EditForumTopicParams, "chat_id" | "message_thread_id" | "name">Additional parameters
Promise<boolean>
Edit the general topic name in a supergroup
New general topic name
Promise<boolean>
Edit an invite link created by the bot
Invite link to edit
Optionaloptions: Omit<EditChatInviteLinkParams, "chat_id" | "invite_link">Additional parameters
Promise<ChatInviteLink>
Export the group invite link
Promise<string>
Hide the general topic in a supergroup
Promise<boolean>
Leave the group.
Promise<boolean>
Pin a message in the group header.
OptionalmessageId: numberMessage ID to pin (defaults to the current message if not specified)
Optionaloptions: Omit<PinChatMessageParams, "chat_id" | "message_id">Additional parameters
Promise<boolean>
Promote or demote a user in the group.
User ID
Optionaloptions: Omit<PromoteChatMemberParams, "chat_id" | "user_id">Additional parameters
Promise<boolean>
Reopen a closed forum topic
OptionalmessageThreadId: numberThread ID. If omitted, resolved from the update.
Promise<boolean>
Reopen the general topic in a supergroup
Promise<boolean>
Restrict a user in the group.
User ID
New permissions
Optionaloptions: Omit<RestrictChatMemberParams, "chat_id" | "user_id" | "permissions">Additional parameters
Promise<boolean>
Revoke an invite link created by the bot
Invite link to revoke
Promise<ChatInviteLink>
Show a Mini App to the user before deciding on their join request
Mini App URL to be opened
OptionalqueryId: stringOptional query ID. If omitted, resolved from the update.
Promise<boolean>
Send an interactive animated dice or other emoji games
Optionalemoji: stringEmoji on which the dice throw animation is based (defaults to 🎲)
Optionaloptions: Omit<SendDiceParams, "chat_id" | "emoji">Additional parameters
Promise<Message>
Send a poll/survey to the group
Poll question
Poll answer options (as strings or full InputPollOption objects)
Optionalparams: Omit<SendPollParams, "chat_id" | "question" | "options">Additional parameters
Promise<Message>
Set a custom title for an administrator promoted by the bot
Admin user ID
Custom title (max 16 characters)
Promise<boolean>
Change the description of the group
New group description
Promise<boolean>
Set a reaction or emoji on a message
List of reaction types to apply
OptionalmessageId: numberMessage ID. If omitted, resolved from the update.
Optionaloptions: { is_big?: boolean }Additional parameters
Promise<boolean>
Set default chat permissions for all users
Default permissions
Optionaloptions: { use_independent_chat_permissions?: boolean }Additional parameters (e.g. use_independent_chat_permissions)
Promise<boolean>
Change the photo of the group
New group photo
Promise<boolean>
Set a collective sticker set for the supergroup
Sticker set name
Promise<boolean>
Change the title of the group
New group title
Promise<boolean>
Unban a user from the group.
User ID
Optionaloptions: Omit<UnbanChatMemberParams, "chat_id" | "user_id">Additional parameters
Promise<boolean>
Unban a previously banned channel
Sender channel ID to unban
Promise<boolean>
Unhide the general topic in a supergroup
Promise<boolean>
Unpin a message in the group.
OptionalmessageId: numberOptional Message ID to unpin. If not specified, the latest pinned message is unpinned.
Promise<boolean>
Unpin all pinned messages in the group
Promise<boolean>
Unpin all messages in a forum topic
OptionalmessageThreadId: numberThread ID. If omitted, resolved from the update.
Promise<boolean>
Unpin all messages in the general topic
Promise<boolean>
Process a received chat join request query