mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-20 13:59:00 +01:00
Add via_join_request
field to ChatMemberUpdated
struct
This commit is contained in:
parent
cf2b01d877
commit
d1108459b1
1 changed files with 11 additions and 0 deletions
|
@ -11,18 +11,29 @@ use crate::types::{Chat, ChatInviteLink, ChatMember, User};
|
||||||
pub struct ChatMemberUpdated {
|
pub struct ChatMemberUpdated {
|
||||||
/// Chat the user belongs to
|
/// Chat the user belongs to
|
||||||
pub chat: Chat,
|
pub chat: Chat,
|
||||||
|
|
||||||
/// Performer of the action, which resulted in the change
|
/// Performer of the action, which resulted in the change
|
||||||
pub from: User,
|
pub from: User,
|
||||||
|
|
||||||
/// Date the change was done
|
/// Date the change was done
|
||||||
#[serde(with = "crate::types::serde_date_from_unix_timestamp")]
|
#[serde(with = "crate::types::serde_date_from_unix_timestamp")]
|
||||||
pub date: DateTime<Utc>,
|
pub date: DateTime<Utc>,
|
||||||
|
|
||||||
/// Previous information about the chat member
|
/// Previous information about the chat member
|
||||||
pub old_chat_member: ChatMember,
|
pub old_chat_member: ChatMember,
|
||||||
|
|
||||||
/// New information about the chat member
|
/// New information about the chat member
|
||||||
pub new_chat_member: ChatMember,
|
pub new_chat_member: ChatMember,
|
||||||
|
|
||||||
/// Chat invite link, which was used by the user to join the chat; for
|
/// Chat invite link, which was used by the user to join the chat; for
|
||||||
/// joining by invite link events only.
|
/// joining by invite link events only.
|
||||||
pub invite_link: Option<ChatInviteLink>,
|
pub invite_link: Option<ChatInviteLink>,
|
||||||
|
|
||||||
|
/// `true`, if the user joined the chat after sending a direct join request
|
||||||
|
/// without using an invite link and being approved by an administrator
|
||||||
|
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
|
||||||
|
pub via_join_request: bool,
|
||||||
|
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
/// True, if the user joined the chat via a chat folder invite link
|
/// True, if the user joined the chat via a chat folder invite link
|
||||||
pub via_chat_folder_invite_link: bool,
|
pub via_chat_folder_invite_link: bool,
|
||||||
|
|
Loading…
Add table
Reference in a new issue