messages.BotCallbackAnswer
- class pyrogram.raw.types.messages.BotCallbackAnswer
Callback answer sent by the bot in response to a button press
Constructor of
BotCallbackAnswer.- Details:
Layer:
223ID:
36585EA4
- Parameters:
cache_time (
int32-bit) – For how long should this answer be cachedalert (
bool, optional) – Whether an alert should be shown to the user instead of a toast notificationhas_url (
bool, optional) – Whether an URL is presentnative_ui (
bool, optional) – Whether to show games in WebView or in native UI.message (
str, optional) – Alert to showurl (
str, optional) – URL to open
- Functions:
This object can be returned by 1 function.
Press an inline callback button and get a callback answer from the bot
TL Schema
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
Parameter Tree
BotCallbackAnswer
├── alert →
true (optional)├── has_url →
true (optional)├── native_ui →
true (optional)├── message →
string (optional)├── url →
string (optional)└── cache_time →
intExample
BotCallbackAnswer(
cache_time=0,
)