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
: bigintQuery id
userId
: bigintId of the user that pressed the button
connectionId
: stringBusiness connection id
message
: Raw.TypeMessageMessage that contains the keyboard (also contains info about the chat where the message was sent).
replyToMessage
: Raw.TypeMessage or undefinedThe message that message is replying to.
chatInstance
: bigintGlobal 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 undefinedCallback data