Callback Query

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

Bases: BaleObject

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

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, optional

inline_message_id

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

Type:

str, optional

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, optional

property user

Aliases for from_user