Update¶
- class bale.Update(update_id, callback_query=MissingValue, message=MissingValue, edited_message=MissingValue)¶
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:
- callback_query¶
New incoming callback query.
- Type:
bale.CallbackQuery
, optional
- message¶
New incoming message of any kind - text, photo, sticker, etc.
- Type:
bale.Message
, optional
- edited_message¶
New version of a message that is known to the bot and was edited.
- Type:
bale.Message
, optional