Data about the represents a change of a reaction on a message performed by a user
The chat on behalf of which the reaction was changed, if the user is anonymous
The chat containing the message the user reacted to
Date of the change in Unix time
OptionalcustomSummary of custom emoji reactions
OptionalemojiSummary of emoji reactions
Unique identifier of the message inside the chat
OptionalpaidSummary of paid emoji reactions
OptionaluserThe user that changed the reaction, if the user isn't anonymous
The client that instantiated this
Date of the change
Return the timestamp change, in milliseconds
Protected_cloneProtected_patchProtected_updateOptionaloptions: ICollectorOptions<string, Message>message collector options
Optionaloptions: ICollectorOptions<string, Message> & { errors?: string[] }message collector options
Optionaloptions: ICollectorOptions<string, MessageReactionUpdated>reaction collector options
Optionaloptions: ICollectorOptions<string, MessageReactionUpdated> & { errors?: string[] }reaction collector options
Use this method to copy messages of any kind. Service messages, paid media messages, giveaway messages, giveaway winners messages, and invoice messages can't be copied. A quiz poll can be copied only if the value of the field correct_option_id is known to the bot. The method is analogous to the method forwardMessage, but the copied message doesn't have a link to the original message.
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
Optionaloptions: Omit<out parameters
Returns the message id of the sent message on success.
Optionaloptions: ICollectorOptions<string, Message>message collector options
Optionaloptions: ICollectorOptions<string, CallbackQuery>inline keyboard collector options
Optionaloptions: ICollectorOptions<string, MessageReactionUpdated>reaction collector options
Use this method to delete a message, including service messages, with the following limitations:
Returns True on success.
Use this method to edit text and game messages.
New text of the message, 1-4096 characters after entities parsing
Optionaloptions: Omit<out parameters
On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
Use this method to edit captions of messages.
Optionalcaption: stringNew caption of the message, 0-1024 characters after entities parsing
Optionaloptions: Omit<out parameters
On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
Use this method to edit a checklist on behalf of a connected business account.
Unique identifier of the business connection on behalf of which the message will be sent.
An object for the new checklist.
Optionaloptions: Omit<out parameters.
On success, the edited Message is returned.
Use this method to edit live location messages. A location can be edited until its live_period expires or editing is explicitly disabled by a call to stopMessageLiveLocation.
Latitude of new location
Longitude of new location
Optionaloptions: Omit<out parameters
On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned.
Use this method to edit animation, audio, document, photo, video messages or to add media to text messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL.
An object for a new media content of the message
Optionaloptions: Omit<out parameters
On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
Use this method to edit only the reply markup of messages.
An object for an inline keyboard
Optionaloptions: Omit<out parameters
On success, if the edited message is not an inline message, the edited Message is returned, otherwise True is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
Use this method to forward messages of any kind. Service messages and messages with protected content can't be forwarded.
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
Optionaloptions: Omit<out parameters
On success, the sent Message is returned.
Use this method to add a message to the list of pinned messages in a chat. In private chats and channel direct messages chats, all non-service messages can be pinned. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to pin messages in groups and channels respectively. Returns True on success.
Optionaloptions: { businessConnectionId?: string; notification?: boolean }options for pinned message
OptionalbusinessConnectionId?: stringUnique identifier of the business connection on behalf of which the message will be pinned
Optionalnotification?: booleanPass True if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats
Returns True on success.
Use this method to change the chosen reactions on a message. Service messages can't be reacted to. Automatically forwarded messages from a channel to its discussion group have the same available reactions as messages in the channel. In albums, bots must react to the first message.
A JSON-serialized list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators. Paid reactions can't be used by bots
OptionalisBig: booleanPass True to set the reaction with a big animation
Returns True on success.
Reply to the current message
Text of the message to be sent, 1-4096 characters after entities parsing
Optionaloptions: Omit<out parameters
On success, the sent Message is returned.
Use this method to stop updating a live location message before live_period expires.
Optionaloptions: Omit<out parameters
On success, if the message is not an inline message, the edited Message is returned, otherwise True is returned.
Flatten an object. Any properties that are collections will get converted to an array of keys.
OptionalpropsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Optional. Specific properties to include/exclude, or rename.
Flattened object.
Use this method to remove a message from the list of pinned messages in a chat. In private chats and channel direct messages chats, all messages can be unpinned. Conversely, the bot must be an administrator with the 'can_pin_messages' right or the 'can_edit_messages' right to unpin messages in groups and channels respectively.
OptionalbusinessConnectionId: stringUnique identifier of the business connection on behalf of which the message will be unpinned
Returns True on success.
The client that instantiated this