Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CallbackQueryEvent

New incoming callback query from a callback button

guides

Check official reference.

eventcategory

'postback'

eventtype

'callback_query'

Hierarchy

  • EventObject<"postback", "callback_query">
  • EventBase
  • CallbackBase
  • CallbackQuery
    • CallbackQueryEvent

Index

Properties

botId: number
callbackQuery: any

Callback query object.

category: "postback"
channel: null | TelegramChat

The chat channel. It's null if the callback is triggered by an inline message

chatInstanceId: string

Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.

data: string

Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.

inlineMessageId?: string

Identifier of the message sent via the bot in inline mode, that originated the query.

message?: any

Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old

platform: "telegram"
queryId: string

Unique identifier for this query

type: "callback_query"
updateId: string

The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you're using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.

Sender

Generated using TypeDoc