Abstractstring
ID of the user who initiated the event
number | undefined
Remove loading indicator from an inline button
Optionalparams: string | Omit<AnswerCallbackQueryParams, "callback_query_id">Parameters object or just the notification text
Promise<boolean>
Answer a guest query (Guest Mode)
query result
Optionaloptions: Omit<AnswerGuestQueryParams, "guest_query_id" | "result">parameters object
Promise<SentGuestMessage>
Answer a pre-checkout query (Pre-checkout Query)
Is everything okay
OptionalerrorMessage: stringError message
Promise<boolean>
Answer a shipping query (Shipping Query)
Is everything okay
Optionaloptions: Omit<AnswerShippingQueryParams, "shipping_query_id" | "ok">Additional parameters
Promise<boolean>
Copy the current message to another chat
ID of the chat where the message is copied
Promise<MessageId>
Delete all reactions of a specific user in the current chat (up to 10,000). By default, deletes the reactions of the user who initiated the event.
Optionaloptions: Omit<DeleteAllMessageReactionsParams, "chat_id">parameters object
Promise<boolean>
Delete the current message
Promise<boolean>
Delete reaction on the current message. By default, deletes the reaction of the user who initiated the event.
Optionaloptions: Omit<DeleteMessageReactionParams, "chat_id" | "message_id">parameters object
Promise<boolean>
Change the caption of the current media file (photo/video)
caption
Optionaloptions: Omit<EditMessageCaptionParams, "caption" | "chat_id" | "message_id">parameters object
Promise<Message | boolean>
Edit the text of the current message
Message text
Optionaloptions: Omit<EditMessageTextParams, "text" | "chat_id" | "message_id">Additional parameters
Promise<Message | boolean>
Change only the inline keyboard of the current message
OptionalreplyMarkup: InlineKeyboardMarkupkeyboard
Promise<Message | boolean>
Forward the current message to another chat
ID of the chat where the message is forwarded
Promise<Message>
Get the list of administrators of the current chat
Promise<ChatMember[]>
Get information about a specific member in the current chat
User ID
Promise<ChatMember>
ProtectedgetLeave the current chat (group/channel)
Promise<boolean>
React to the current message
Array of reactions (e.g.: [{ type: "emoji", emoji: "👍" }])
Promise<boolean>
Optionaloptions: Omit<SendMessageParams, "text" | "chat_id">Send chat action status to the current chat (e.g., "typing", "upload_photo")
Action status (e.g., "typing", "upload_photo")
Promise<boolean>
Reply to the current message with a document (file)
URL of the file or file_id
Optionaloptions: Omit<SendDocumentParams, "chat_id" | "document">Parameters object or just the notification text
Promise<Message>
Streaming a temporary message (Draft) for generating responses (e.g., AI). This ephemeral message lives for 30 seconds. After completion, it is mandatory to call a regular reply().
unique stream identifier (must be > 0). Identical IDs animate changes.
Optionaloptions: Omit<SendMessageDraftParams, "draft_id">parameters object
Promise<boolean>
Send a game to the current chat
short name of the game
Optionaloptions: Omit<SendGameParams, "chat_id" | "game_short_name">parameters object
Promise<Message>
Quick reply with an Inline keyboard
message text
keyboard
Optionaloptions: Omit<SendMessageParams, "text" | "chat_id" | "reply_markup">parameters object
Promise<Message>
Send an invoice to the current chat
Parameters object
Promise<Message>
Reply to the current message with a keyboard (Inline or Reply)
message text
keyboard
Optionaloptions: Omit<SendMessageParams, "text" | "chat_id" | "reply_markup">parameters object
Promise<Message>
Reply to the current message with a "live photo" (Live Photo)
URL of the photo or file_id
URL of the "live photo" or file_id
Optionaloptions: Omit<SendLivePhotoParams, "chat_id" | "photo" | "live_photo">Parameters object or just the notification text
Promise<Message>
Send a group of media files (album). Supports photos, videos, audio, documents, and new Live Photos (API 10.0).
array of media files
Optionaloptions: Omit<SendMediaGroupParams, "chat_id" | "media">parameters object
Promise<Message[]>
Send paid media, for viewing which the user must pay with Telegram Stars.
number of stars the user must pay
array of media files
Optionaloptions: Omit<SendPaidMediaParams, "chat_id" | "media" | "star_count">parameters object
Promise<Message>
Reply to the current message with a photo
URL of the image or file_id
Optionaloptions: Omit<SendPhotoParams, "chat_id" | "photo">Parameters object or just the notification text
Promise<Message>
Send a poll or quiz (Poll / Quiz) to the current chat. Supports new API 10.0 features: media, explanation_media, 1 answer option.
poll text
answer options
Optionaloptions: Omit<SendPollParams, "chat_id" | "question" | "options">parameters object
Promise<Message>
Reply to the current message with a video file
URL of the video or file_id
Optionaloptions: Omit<SendVideoParams, "chat_id" | "video">Parameters object or just the notification text
Promise<Message>
Send a gift (Star Gift) to the current user
Gift ID
Optionaloptions: Omit<SendGiftParams, "chat_id" | "user_id" | "gift_id">Parameters object
Promise<boolean>
Set a high score for a player in the game
game score
Optionaloptions: Omit<SetGameScoreParams, "user_id" | "score">parameters object
Promise<Message | boolean>
Returns command arguments (everything that follows the command name). Example: for the message "/start ref_123", it will return "ref_123". If it is just "/start", it will return an empty string.