messages.BotCallbackAnswer

class pyrogram.raw.base.messages.BotCallbackAnswer

Callback answer of bot

Constructors:

This base type has 1 constructor available.

messages.BotCallbackAnswer

Callback answer sent by the bot in response to a button press

Functions:

This object can be returned by 1 function.

messages.GetBotCallbackAnswer

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
├── alerttrue (optional)
├── has_urltrue (optional)
├── native_uitrue (optional)
├── messagestring (optional)
├── urlstring (optional)
└── cache_timeint

Example

BotCallbackAnswer(
    alert=None,
    has_url=None,
    native_ui=None,
    message="Hello",
    url="https://google.com",
    cache_time=0,
)