Skip to main content

Module update

Module update 

Source
Expand description

High-level update types delivered by crate::Client::stream_updates.

Every update the Telegram server pushes is classified into one of the variants of Update. The raw constructor ID is always available via Update::Raw for anything not yet wrapped.

Structs§

CallbackQuery
A user pressed an inline keyboard button on a bot message.
IncomingMessage
A new or edited message.
InlineQuery
A user is typing an inline query (@bot something).
InlineSend
A user chose an inline result and sent it.
MessageDeletion
One or more messages were deleted.
RawUpdate
A TL update that has no dedicated high-level variant yet.

Enums§

Update
A high-level event received from Telegram.

Functions§

from_single_update_pub
Convert a single tl::enums::Update into a Vec<Update>.