class TelegramApi::Types::Update

Included Modules

Defined in:

telegram_api/src/types/update.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def channel_post : Message | Nil #

Optional. New incoming channel post of any kind - text, photo, sticker, etc.


[View source]
def edited_channel_post : Message | Nil #

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.


[View source]
def edited_message : Message | Nil #

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.


[View source]
def message : Message | Nil #

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


[View source]
def update_id : Int64 #

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.


[View source]