tgbot-cpp
Loading...
Searching...
No Matches
TgBot::ChatMemberUpdated Struct Reference

This object represents changes in the status of a chat member. More...

#include <Types.h>

Public Types

using Ptr = std::shared_ptr<ChatMemberUpdated>

Public Attributes

std::shared_ptr< Chatchat { }
 Chat the user belongs to.
std::shared_ptr< Userfrom { }
 Performer of the action, which resulted in the change.
std::int32_t date { }
 Date the change was done in Unix time.
std::shared_ptr< ChatMemberoldChatMember { }
 Previous information about the chat member.
std::shared_ptr< ChatMembernewChatMember { }
 New information about the chat member.
std::shared_ptr< ChatInviteLinkinviteLink { }
 Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
std::optional< bool > viaJoinRequest { }
 Optional. True, if the user joined the chat after sending a direct join request without using an invite link and being approved by an administrator.
std::optional< bool > viaChatFolderInviteLink { }
 Optional. True, if the user joined the chat via a chat folder invite link.

Detailed Description

This object represents changes in the status of a chat member.

Definition at line 2724 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 2725 of file Types.h.

Member Data Documentation

◆ chat

std::shared_ptr<Chat> TgBot::ChatMemberUpdated::chat { }

Chat the user belongs to.

Definition at line 2730 of file Types.h.

◆ date

std::int32_t TgBot::ChatMemberUpdated::date { }

Date the change was done in Unix time.

Definition at line 2740 of file Types.h.

◆ from

std::shared_ptr<User> TgBot::ChatMemberUpdated::from { }

Performer of the action, which resulted in the change.

Definition at line 2735 of file Types.h.

◆ inviteLink

std::shared_ptr<ChatInviteLink> TgBot::ChatMemberUpdated::inviteLink { }

Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.

Definition at line 2756 of file Types.h.

◆ newChatMember

std::shared_ptr<ChatMember> TgBot::ChatMemberUpdated::newChatMember { }

New information about the chat member.

Definition at line 2750 of file Types.h.

◆ oldChatMember

std::shared_ptr<ChatMember> TgBot::ChatMemberUpdated::oldChatMember { }

Previous information about the chat member.

Definition at line 2745 of file Types.h.

◆ viaChatFolderInviteLink

std::optional<bool> TgBot::ChatMemberUpdated::viaChatFolderInviteLink { }

Optional. True, if the user joined the chat via a chat folder invite link.

Definition at line 2767 of file Types.h.

◆ viaJoinRequest

std::optional<bool> TgBot::ChatMemberUpdated::viaJoinRequest { }

Optional. True, if the user joined the chat after sending a direct join request without using an invite link and being approved by an administrator.

Definition at line 2762 of file Types.h.


The documentation for this struct was generated from the following file: