tgbotxx 1.1.9.2
Telegram Bot C++ Library
Loading...
Searching...
No Matches
tgbotxx::MessageOriginChat Struct Reference

The message was originally sent on behalf of a chat to a group chat. https://core.telegram.org/bots/api#messageoriginchat. More...

#include <MessageOrigin.hpp>

Inheritance diagram for tgbotxx::MessageOriginChat:
tgbotxx::MessageOrigin

Public Member Functions

 MessageOriginChat ()
 
 MessageOriginChat (const nl::json &json)
 
nl::json toJson () const override
 Serializes this object to JSON.
 
void fromJson (const nl::json &json) override
 Deserializes this object from JSON.
 
- Public Member Functions inherited from tgbotxx::MessageOrigin
 MessageOrigin ()=default
 
 MessageOrigin (const nl::json &json)
 
virtual ~MessageOrigin ()=default
 

Public Attributes

Ptr< ChatsenderChat
 Chat that sent the message originally.
 
std::string authorSignature
 Optional. For messages originally sent by an anonymous chat administrator, original message author signature.
 
- Public Attributes inherited from tgbotxx::MessageOrigin
std::string type
 Type of the message origin, one of "user", "hidden_user", "chat" or "channel".
 
std::time_t date {}
 Date the message was sent originally in Unix time.
 

Detailed Description

The message was originally sent on behalf of a chat to a group chat. https://core.telegram.org/bots/api#messageoriginchat.

Definition at line 101 of file MessageOrigin.hpp.

Constructor & Destructor Documentation

◆ MessageOriginChat() [1/2]

tgbotxx::MessageOriginChat::MessageOriginChat ( )
inline

Definition at line 102 of file MessageOrigin.hpp.

◆ MessageOriginChat() [2/2]

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

Definition at line 105 of file MessageOrigin.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::MessageOriginChat::fromJson ( const nl::json &  json)
inlineoverridevirtual

Deserializes this object from JSON.

Reimplemented from tgbotxx::MessageOrigin.

Definition at line 122 of file MessageOrigin.hpp.

◆ toJson()

nl::json tgbotxx::MessageOriginChat::toJson ( ) const
inlineoverridevirtual

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::MessageOrigin.

Definition at line 115 of file MessageOrigin.hpp.

Member Data Documentation

◆ authorSignature

std::string tgbotxx::MessageOriginChat::authorSignature

Optional. For messages originally sent by an anonymous chat administrator, original message author signature.

Definition at line 113 of file MessageOrigin.hpp.

◆ senderChat

Ptr<Chat> tgbotxx::MessageOriginChat::senderChat

Chat that sent the message originally.

Definition at line 110 of file MessageOrigin.hpp.


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