pub enum UpdatesLike {
Updates(Updates),
ShortSentMessage {
request: SendMessage,
update: UpdateShortSentMessage,
},
AffectedMessages(AffectedMessages),
InvitedUsers(InvitedUsers),
}Expand description
Anything that should be treated like an update.
Telegram unfortunately also includes update state in types
that are not part of the usual tl::enums::Updates.
Variants§
Updates(Updates)
The usual variant, received passively from Telegram.
ShortSentMessage
Special-case for short-sent messages, where the request is also needed to construct a complete update.
Fields
§
request: SendMessageThe request that triggered the short update.
§
update: UpdateShortSentMessageThe incomplete update caused by the request.
AffectedMessages(AffectedMessages)
Special-case for requests that affect some messages.
InvitedUsers(InvitedUsers)
Special-case for requests that lead to users being invited.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UpdatesLike
impl RefUnwindSafe for UpdatesLike
impl Send for UpdatesLike
impl Sync for UpdatesLike
impl Unpin for UpdatesLike
impl UnwindSafe for UpdatesLike
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more