tgbotxx  1.1.6.9
Telegram Bot C++ Library
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. More...
 
void fromJson (const nl::json &json)
 Deserializes this object from JSON. More...
 

Public Attributes

Ptr< Chatchat
 Chat the user belongs to. More...
 
Ptr< Userfrom
 Performer of the action, which resulted in the change. More...
 
std::time_t date {}
 Date the change was done in Unix time. More...
 
Ptr< ChatMemberoldChatMember
 Previous information about the chat member. More...
 
Ptr< ChatMembernewChatMember
 New information about the chat member. More...
 
Ptr< ChatInviteLinkinviteLink
 Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only. More...
 
bool viaChatFolderInviteLink {}
 Optional. True, if the user joined the chat via a chat folder invite link. More...
 

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 55 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 42 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 38 of file ChatMemberUpdated.hpp.


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