Callback Query

class bale.CallbackQuery(id, from_user, data, message, inline_message_id)

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:

Optional[bale.Message]

inline_message_id

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

Type:

Optional[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:

Optional[str]

property user

Aliases for from_user