Callback Query

class bale.CallbackQuery(callback_id, data=None, message=None, inline_message_id=None, from_user=None, bot=None)

Bases: object

This object represents an incoming callback query from a callback button in an inline keyboard.

callback_id

Unique identifier for this query.

Type:

str

from_user

Sender.

Type:

bale.User

message

Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old.

Type:

bale.Message

inline_message_id

Identifier of the message sent via the bot in inline mode, that originated the query.

Type:

str

data

Data associated with the callback button. Be aware that the message, which originated the query, can contain no callback buttons with this data.

Type:

str

property user

Aliases for from_user