diff --git a/crates/teloxide-core/src/types/chat_member_updated.rs b/crates/teloxide-core/src/types/chat_member_updated.rs index 0d295419..f4ef87d5 100644 --- a/crates/teloxide-core/src/types/chat_member_updated.rs +++ b/crates/teloxide-core/src/types/chat_member_updated.rs @@ -3,6 +3,9 @@ use serde::{Deserialize, Serialize}; use crate::types::{Chat, ChatInviteLink, ChatMember, User}; +/// This object represents changes in the status of a chat member. +/// +/// [The official docs](https://core.telegram.org/bots/api#chatmemberupdated). #[serde_with_macros::skip_serializing_none] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ChatMemberUpdated { @@ -20,6 +23,9 @@ pub struct ChatMemberUpdated { /// Chat invite link, which was used by the user to join the chat; for /// joining by invite link events only. pub invite_link: Option, + #[serde(default)] + /// True, if the user joined the chat via a chat folder invite link + pub via_chat_folder_invite_link: bool, } impl ChatMemberUpdated {