Layer 220
MessagesBotCallbackAnswer
Callback answer sent by the bot in response to a button press
constructor
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;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Alert | flags.1?true | Whether an alert should be shown to the user instead of a toast notification |
| HasUrl | flags.3?true | Whether an URL is present |
| NativeUi | flags.4?true | Whether to show games in Web View or in native UI. |
| Message | flags.0?string | Alert to show |
| Url | flags.2?string | URL to open |
| CacheTime | int | For how long should this answer be cached |
Returns
messages.BotCallbackAnswerGogram Example
// Creating MessagesBotCallbackAnswer constructor obj := &tg.MessagesBotCallbackAnswer{ CacheTime: 0, // Optional fields: // Alert: true, // HasUrl: true, // NativeUi: true, // Message: "...", // ... more optional fields }