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

The message was originally sent to a channel chat. https://core.telegram.org/bots/api#messageoriginchannel. More...

#include <MessageOrigin.hpp>

Inheritance diagram for tgbotxx::MessageOriginChannel:
tgbotxx::MessageOrigin

Public Member Functions

 MessageOriginChannel ()
 
 MessageOriginChannel (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< Chatchat
 Channel chat to which the message was originally sent.
 
std::int32_t messageId {}
 Unique message identifier inside the chat.
 
std::string authorSignature
 Optional. Signature of the original post author.
 
- 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 to a channel chat. https://core.telegram.org/bots/api#messageoriginchannel.

Definition at line 131 of file MessageOrigin.hpp.

Constructor & Destructor Documentation

◆ MessageOriginChannel() [1/2]

tgbotxx::MessageOriginChannel::MessageOriginChannel ( )
inline

Definition at line 132 of file MessageOrigin.hpp.

◆ MessageOriginChannel() [2/2]

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

Definition at line 135 of file MessageOrigin.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Reimplemented from tgbotxx::MessageOrigin.

Definition at line 156 of file MessageOrigin.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Reimplemented from tgbotxx::MessageOrigin.

Definition at line 148 of file MessageOrigin.hpp.

Member Data Documentation

◆ authorSignature

std::string tgbotxx::MessageOriginChannel::authorSignature

Optional. Signature of the original post author.

Definition at line 146 of file MessageOrigin.hpp.

◆ chat

Ptr<Chat> tgbotxx::MessageOriginChannel::chat

Channel chat to which the message was originally sent.

Definition at line 140 of file MessageOrigin.hpp.

◆ messageId

std::int32_t tgbotxx::MessageOriginChannel::messageId {}

Unique message identifier inside the chat.

Definition at line 143 of file MessageOrigin.hpp.


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