Update

class bale.Update(update_id, callback_query=None, message=None, edited_message=None)

Bases: BaleObject

This object represents an incoming update.

update_id

The update’s unique identifier. Update identifiers start from a certain positive number and increase sequentially. This ID becomes especially handy if you’re using Webhooks, since it allows you to ignore repeated updates or to restore the correct update sequence, should they get out of order. If there are no new updates for at least a week, then identifier of the next update will be chosen randomly instead of sequentially.

Type:

int

callback_query

New incoming callback query.

Type:

Optional[bale.CallbackQuery]

message

New incoming message of any kind - text, photo, sticker, etc.

Type:

Optional[bale.Message]

edited_message

New version of a message that is known to the bot and was edited.

Type:

Optional[bale.Message]