Raw.messages.BotCallbackAnswer
Callback answer sent by the bot in response to a button press
messages.botCallbackAnswer#36585ea4 flags:# alert:flags.1?true has_url:flags.3?true native_ui:flags.4?true message:flags.0?string url:flags.2?string cache_time:int = messages.BotCallbackAnswer;
export namespace Raw {
export namespace messages {
export class BotCallbackAnswer {
constructor(params: {
alert?: boolean;
hasUrl?: boolean;
nativeUi?: boolean;
message?: string;
url?: string;
cacheTime: number;
}) {}
}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x36585ea4
Property
alert
: boolean or undefinedWhether an alert should be shown to the user instead of a toast notification
hasUrl
: boolean or undefinedWhether an url is present
nativeUi
: boolean or undefinedWhether to show games in webview or in native ui.
message
: string or undefinedAlert to show
url
: string or undefinedUrl to open
cacheTime
: numberFor how long should this answer be cached