Raw.UpdateBusinessBotCallbackQuery

Raw.UpdateBusinessBotCallbackQuery

A callback button sent via a business connection was pressed, and the button data was sent to the bot that created the button.

updateBusinessBotCallbackQuery#1ea2fda7 flags:# query_id:long user_id:long connection_id:string message:Message reply_to_message:flags.2?Message chat_instance:long data:flags.0?bytes = Update;
export namespace Raw {
  export class UpdateBusinessBotCallbackQuery {
    constructor(params: {
      queryId: bigint;
      userId: bigint;
      connectionId: string;
      message: Raw.TypeMessage;
      replyToMessage?: Raw.TypeMessage;
      chatInstance: bigint;
      data?: Buffer;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 198
Constructor ID: 0x1ea2fda7

Property

  • queryId : bigint

    Query id

  • userId : bigint

    Id of the user that pressed the button

  • connectionId : string

    Business connection id

  • message : Raw.TypeMessage

    Message that contains the keyboard (also contains info about the chat where the message was sent).

  • replyToMessage : Raw.TypeMessage or undefined

    The message that message is replying to.

  • chatInstance : bigint

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

  • data : Buffer or undefined

    Callback data