Send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert.
Send answers to an inline query
Send answers to an inline query
Send answers to an inline query
Send a audio by a file_id
alreay uploaded, a external url or uploading a new file.
A CallbackQueryEvent will be triggered when button is pressed.
Inform user that something is happening on the bot's side. The status is set for 5 seconds or less (when a message arrives from your bot, Telegram clients clear its typing status).
Send a location point on the map.
The user's phone number will be sent as a contact when the button is pressed. Available in private chats only
Delete a chat photo. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.
Leave a group, supergroup or channel.
Edit a text and game message
Send a location point on the map.
Send a document by a file_id
alreay uploaded, a external url or uploading a new file.
Edit captions of a media messages
Edit a sent live location messages. A location can be edited until its live_period
expires or editing is explicitly disabled by StopLiveLocation.
Edit a animation, audio, document, photo, or video messages. If a message is a part of a message album, then it can be edited only to a photo or a video. Otherwise, message type can be changed arbitrarily. When inline message is edited, new file can't be uploaded. Use previously uploaded file via its file_id or specify a URL.
Edit a text and game message
Control options including disableNotification, parseMode of a group of messages. Or add a replyMarkup at the last message in the Expression.
Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use oneTimeBeyboard
in ReplyKeyboard)
Forward messages of any kind
Send a location point on the map.
Description of the game that will be launched when the user presses the button. This type of button must always be the first button in the first row.
Represents a link to an article or web page.
Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the audio.
Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the contact.
Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.
Represents a Game.
Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the animation.
Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the location.
Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the animation.
Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the photo.
Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the sticker.
Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the venue.
Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the video.
Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use inputMessageContent to send a message with the specified content instead of the the voice message.
Send a location point on the map.
Represent a row of buttons within InlineKeyboard or ReplyKeyboard.
Kick a user from a group, a supergroup or a channel. In the case of supergroups and channels, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.
Leave a group, supergroup or channel.
Send a location point on the map.
The user's current location will be sent when the button is pressed. Available in private chats only
Send a video note by a file_id
alreay uploaded, a external url or uploading a new file.
Description of the game that will be launched when the user presses the button. This type of button must always be the first button in the first row.
Send a photo by a file_id
alreay uploaded, a external url or uploading a new file.
Pin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in the supergroup or 'can_edit_messages' admin right in the channel.
Send a location point on the map.
The user will be asked to create a poll and send it to the bot when the button is pressed. Available in private chats only
Promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Pass False for all boolean parameters to demote a user.
Requests clients to remove the custom keyboard (user will not be able to summon this keyboard; if you want to hide the keyboard from sight but keep it accessible, use oneTimeBeyboard
in ReplyKeyboard)
Restrict a user in a supergroup. The bot must be an administrator in the supergroup for this to work and must have the appropriate admin rights. Pass True for all permissions to lift restrictions from a user.
Set a custom title for an administrator in a supergroup promoted by the bot.
Change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.
Set default chat permissions for all members. The bot must be an administrator in the group or a supergroup for this to work and must have the can_restrict_members admin rights.
Set a new profile photo for the chat. Photos can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.
Change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.
Change the title of a chat. Titles can't be changed for private chats. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights.
Send static .WEBP or animated .TGS stickers
Stop a sent live location messages. A location can be edited until its live_period
expires or editing is explicitly disabled by StopLiveLocation.
Edit a text and game message
Pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field.
Send a location point on the map.
Text of button will be sent as a message by the user when the button is pressed
Unban a previously kicked user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work.
Unpin a message in a group, a supergroup, or a channel. The bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' admin right in the supergroup or 'can_edit_messages' admin right in the channel.
The url will be opened by the client when button is pressed. If login
is
set, the authorization data will be provided within querystrings. The login
mode is an easier replacement for the Telegram Login Widget.
Send a location point on the map.
Send a video by a file_id
alreay uploaded, a external url or uploading a new file.
Send a video note by a file_id
alreay uploaded, a external url or uploading a new file.
Send a voice by a file_id
alreay uploaded, a external url or uploading a new file.
Sends the message silently. Users will receive a notification with no sound.
One ReplyMarkup element for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
If the message is a reply, ID of the original message
Generated using TypeDoc
Send a animation by a
file_id
alreay uploaded, a external url or uploading a new file.AnimationProps
Check official reference.