tgbotxx 1.2.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::ChatMemberUpdated Struct Reference

This object represents changes in the status of a chat member. https://core.telegram.org/bots/api#chatmemberupdated. More...

#include <ChatMemberUpdated.hpp>

Public Member Functions

 ChatMemberUpdated ()=default
 
 ChatMemberUpdated (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON.
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON.
 

Public Attributes

Ptr< Chatchat
 Chat the user belongs to.
 
Ptr< Userfrom
 Performer of the action, which resulted in the change.
 
std::time_t date {}
 Date the change was done in Unix time.
 
Ptr< ChatMemberoldChatMember
 Previous information about the chat member.
 
Ptr< ChatMembernewChatMember
 New information about the chat member.
 
Ptr< ChatInviteLinkinviteLink
 Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.
 
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.
 
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. https://core.telegram.org/bots/api#chatmemberupdated.

Definition at line 13 of file ChatMemberUpdated.hpp.

Constructor & Destructor Documentation

◆ ChatMemberUpdated() [1/2]

tgbotxx::ChatMemberUpdated::ChatMemberUpdated ( )
default

◆ ChatMemberUpdated() [2/2]

tgbotxx::ChatMemberUpdated::ChatMemberUpdated ( const nl::json &  json)
inlineexplicit

Definition at line 15 of file ChatMemberUpdated.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::ChatMemberUpdated::fromJson ( const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 59 of file ChatMemberUpdated.hpp.

◆ toJson()

nl::json tgbotxx::ChatMemberUpdated::toJson ( ) const
inline

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 45 of file ChatMemberUpdated.hpp.

Member Data Documentation

◆ chat

Ptr<Chat> tgbotxx::ChatMemberUpdated::chat

Chat the user belongs to.

Definition at line 20 of file ChatMemberUpdated.hpp.

◆ date

std::time_t tgbotxx::ChatMemberUpdated::date {}

Date the change was done in Unix time.

Definition at line 26 of file ChatMemberUpdated.hpp.

◆ from

Ptr<User> tgbotxx::ChatMemberUpdated::from

Performer of the action, which resulted in the change.

Definition at line 23 of file ChatMemberUpdated.hpp.

◆ inviteLink

Ptr<ChatInviteLink> tgbotxx::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 35 of file ChatMemberUpdated.hpp.

◆ newChatMember

Ptr<ChatMember> tgbotxx::ChatMemberUpdated::newChatMember

New information about the chat member.

Definition at line 32 of file ChatMemberUpdated.hpp.

◆ oldChatMember

Ptr<ChatMember> tgbotxx::ChatMemberUpdated::oldChatMember

Previous information about the chat member.

Definition at line 29 of file ChatMemberUpdated.hpp.

◆ viaChatFolderInviteLink

bool tgbotxx::ChatMemberUpdated::viaChatFolderInviteLink {}

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

Definition at line 41 of file ChatMemberUpdated.hpp.

◆ viaJoinRequest

bool tgbotxx::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 38 of file ChatMemberUpdated.hpp.


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