messages.SetBotCallbackAnswer
- class pyrogram.raw.functions.messages.SetBotCallbackAnswer
Set the callback answer to a user button press (bots only)
- Details:
Layer:
223ID:
D58F130A
- Parameters:
query_id (
int64-bit) – Query IDcache_time (
int32-bit) – Cache validityalert (
bool, optional) – Whether to show the message as a popup instead of a toast notificationmessage (
str, optional) – Popup to showurl (
str, optional) – URL to open
- Returns:
bool
TL Schema
messages.setBotCallbackAnswer#d58f130a
flags:#
alert:flags.1?true
query_id:long
message:flags.0?string
url:flags.2?string
cache_time:int
= Bool
Parameter Tree
SetBotCallbackAnswer
├── alert →
true (optional)├── query_id →
long├── message →
string (optional)├── url →
string (optional)└── cache_time →
intExample
await app.invoke(
SetBotCallbackAnswer(
alert=None,
query_id=0,
message="Hello",
url="https://google.com",
cache_time=0,
)
)