A callback query originating from an inline message sent by the bot.

Hierarchy

  • BaseCallbackQuery
    • InlineCallbackQuery

Constructors

Properties

_peers: PeersIndex

Accessors

  • get data(): null | Uint8Array
  • Data that was contained in the callback button, if any

    Note that this field is defined by the client, and a bad client can send arbitrary data in this field.

    Returns null | Uint8Array

  • get dataStr(): null | string
  • Data that was contained in the callback button, if any, parsed as a UTF8 string

    Note that this field is defined by the client, and a bad client can send arbitrary data in this field.

    Returns null | string

  • get game(): null | string
  • In case this message was from InputInlineResultGame, or the button was BotKeyboard.game, short name of the game that should be returned.

    Returns null | string

  • get id(): Long
  • ID of this callback query

    Returns Long

  • get inlineMessageId(): TypeInputBotInlineMessageID
  • Identifier of the previously sent inline message, that contained the button which was clicked. This ID can be used in TelegramClient.editInlineMessage

    Returns TypeInputBotInlineMessageID

  • get inlineMessageIdStr(): string
  • Identifier of the previously sent inline message, that contained the button which was clicked, as a TDLib and Bot API compatible string. Can be used instead of inlineMessageId in case you want to store it in some storage.

    Returns string

  • get uniqueChatId(): Long
  • Unique ID, that represents the chat to which the inline message was sent. Does not contain actual chat ID.

    Returns Long

  • get user(): User
  • User who has pressed the button

    Returns User