Raw.messages.SetBotCallbackAnswer
Set the callback answer to a user button press (bots only)
messages.setBotCallbackAnswer#d58f130a flags:# alert:flags.1?true query_id:long message:flags.0?string url:flags.2?string cache_time:int = Bool;
export namespace Raw {
export namespace messages {
export class SetBotCallbackAnswer {
constructor(params: {
alert?: boolean;
queryId: bigint;
message?: string;
url?: string;
cacheTime: number;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0xd58f130a
Property
alert
: boolean or undefinedWhether to show the message as a popup instead of a toast notification
queryId
: bigintQuery id
message
: string or undefinedPopup to show
url
: string or undefinedUrl to open
cacheTime
: numberCache validity