messages.SetBotCallbackAnswer

class pyrogram.raw.functions.messages.SetBotCallbackAnswer

Set the callback answer to a user button press (bots only)

Details:
  • Layer: 223

  • ID: D58F130A

Parameters:
  • query_id (int 64-bit) – Query ID

  • cache_time (int 32-bit) – Cache validity

  • alert (bool, optional) – Whether to show the message as a popup instead of a toast notification

  • message (str, optional) – Popup to show

  • url (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
├── alerttrue (optional)
├── query_idlong
├── messagestring (optional)
├── urlstring (optional)
└── cache_timeint

Example

await app.invoke(
    SetBotCallbackAnswer(
        alert=None,
        query_id=0,
        message="Hello",
        url="https://google.com",
        cache_time=0,
    )
)