Data about the connection of the bot with a business account
Date the connection was established in Unix time
True, if the connection is active
Unique identifier of the business connection
True, if the bot can act on behalf of the business account in chats that were active in the last 24 hours
Business account user that created the business connection
Identifier of a private chat with the user who created the business connection
The client that instantiated this
Date the connection was established
Return the timestamp connection was established, in milliseconds
Protected
_cloneProtected
_patchProtected
_updateStores a message that can be sent by a user of a Mini App.
An object describing the message to be sent.
Optional
options: Omit<{ out parameters.
Returns a PreparedInlineMessage object.
Use this method to send text messages.
Text of the message to be sent, 1-4096 characters after entities parsing and media group options
Optional
options: Omit<{ out parameters
On success, the sent Message is returned.
Optional
options: Omit<{ Sends a gift to the given user. The gift can't be converted to Telegram Stars by the user.
Identifier of the gift.
Optional
options: Omit<{ out parameters.
Returns True on success.
Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method requestEmojiStatusAccess.
Optional
options: { out parameters.
Optional
emojiCustom emoji identifier of the emoji status to set. Pass an empty string to remove the status.
Optional
emojiExpiration date of the emoji status, if any
Returns True on success.
Allows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars.
Telegram payment identifier for the subscription.
Pass True to cancel extension of the user subscription; the subscription must be active up to the end of the current subscription period. Pass False to allow the user to re-enable a subscription that was previously canceled by the bot.
Returns True on success.
Flatten an object. Any properties that are collections will get converted to an array of keys.
Optional
propsRecursive: booleanOptional. If true, calls toJSON method on nested objects.
Rest
...props: Record<string, string | boolean>[]Optional. Specific properties to include/exclude, or rename.
Flattened object.
The client that instantiated this