Enum telegram_types::bot::types::UpdateContent
source · pub enum UpdateContent {
Message(Message),
EditedMessage(Message),
ChannelPost(Message),
EditedChannelPost(Message),
InlineQuery(InlineQuery),
ChosenInlineResult(ChosenInlineResult),
CallbackQuery(CallbackQuery),
MyChatMember(ChatMemberUpdated),
ChatMember(ChatMemberUpdated),
ChatJoinRequest(ChatJoinRequest),
Unknown,
// some variants omitted
}
Variants§
Message(Message)
New incoming message of any kind — text, photo, sticker, etc.
EditedMessage(Message)
New version of a message that is known to the bot and was edited
ChannelPost(Message)
New incoming channel post of any kind — text, photo, sticker, etc.
EditedChannelPost(Message)
New version of a channel post that is known to the bot and was edited
InlineQuery(InlineQuery)
New incoming inline query
ChosenInlineResult(ChosenInlineResult)
The result of an inline query that was chosen by a user and sent to their chat partner.
Please see our documentation on the feedback collecting for details on how to enable these updates for your bot.
CallbackQuery(CallbackQuery)
New incoming callback query
MyChatMember(ChatMemberUpdated)
The bot’s chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user.
ChatMember(ChatMemberUpdated)
A chat member’s status was updated in a chat.
The bot must be an administrator in the chat and must explicitly
specify "chat_member"
in the list of allowed_updates to receive these updates.
ChatJoinRequest(ChatJoinRequest)
A request to join the chat has been sent.
The bot must have the can_invite_users
administrator right in the chat to receive these updates.
Unknown
Unknown update type
Trait Implementations§
source§impl Clone for UpdateContent
impl Clone for UpdateContent
source§fn clone(&self) -> UpdateContent
fn clone(&self) -> UpdateContent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UpdateContent
impl Debug for UpdateContent
source§impl Default for UpdateContent
impl Default for UpdateContent
source§impl<'de> Deserialize<'de> for UpdateContent
impl<'de> Deserialize<'de> for UpdateContent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for UpdateContent
impl PartialEq for UpdateContent
source§impl Serialize for UpdateContent
impl Serialize for UpdateContent
impl StructuralPartialEq for UpdateContent
Auto Trait Implementations§
impl Freeze for UpdateContent
impl RefUnwindSafe for UpdateContent
impl Send for UpdateContent
impl Sync for UpdateContent
impl Unpin for UpdateContent
impl UnwindSafe for UpdateContent
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)