From aa6d659268ae9e1ec0487a7885c568270e1b2894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=8B=D1=80=D1=86=D0=B5=D0=B2=20=D0=92=D0=B0=D0=B4?= =?UTF-8?q?=D0=B8=D0=BC=20=D0=98=D0=B3=D0=BE=D1=80=D0=B5=D0=B2=D0=B8=D1=87?= Date: Sat, 15 Jun 2024 15:05:44 +0300 Subject: [PATCH] Add the field via_chat_folder_invite_link to the ChatMemberUpdated --- crates/teloxide-core/src/types/chat_member_updated.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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 {