class TelegramApi::Types::Update
- TelegramApi::Types::Update
- Reference
- Object
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
Defined in:
telegram_api/src/types/update.crConstructors
Instance Method Summary
-
#channel_post : Message | Nil
Optional.
-
#edited_channel_post : Message | Nil
Optional.
-
#edited_message : Message | Nil
Optional.
-
#message : Message | Nil
Optional.
-
#update_id : Int64
The update's unique identifier.
Constructor Detail
Instance Method Detail
Optional. New incoming channel post of any kind - text, photo, sticker, etc.
Optional. New version of a channel post that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot.
Optional. New version of a message that is known to the bot and was edited. This update may at times be triggered by changes to message fields that are either unavailable or not actively used by your bot.
Optional. New incoming message of any kind - text, photo, sticker, etc.
The update's unique identifier. Update identifiers start from a certain positive number and increase sequentially. This identifier 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.