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

This object is received when messages are deleted from a connected business account. https://core.telegram.org/bots/api#businessmessagesdeleted. More...

#include <BusinessMessagesDeleted.hpp>

Public Member Functions

 BusinessMessagesDeleted ()=default
 
 BusinessMessagesDeleted (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

std::string businessConnectionId
 Unique identifier of the business connection.
 
Ptr< Chatchat
 Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.
 
std::vector< std::int32_t > messageIds
 The list of identifiers of deleted messages in the chat of the business account.
 

Detailed Description

This object is received when messages are deleted from a connected business account. https://core.telegram.org/bots/api#businessmessagesdeleted.

Definition at line 9 of file BusinessMessagesDeleted.hpp.

Constructor & Destructor Documentation

◆ BusinessMessagesDeleted() [1/2]

tgbotxx::BusinessMessagesDeleted::BusinessMessagesDeleted ( )
default

◆ BusinessMessagesDeleted() [2/2]

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

Definition at line 11 of file BusinessMessagesDeleted.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 36 of file BusinessMessagesDeleted.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 27 of file BusinessMessagesDeleted.hpp.

Member Data Documentation

◆ businessConnectionId

std::string tgbotxx::BusinessMessagesDeleted::businessConnectionId

Unique identifier of the business connection.

Definition at line 16 of file BusinessMessagesDeleted.hpp.

◆ chat

Ptr<Chat> tgbotxx::BusinessMessagesDeleted::chat

Information about a chat in the business account. The bot may not have access to the chat or the corresponding user.

Definition at line 20 of file BusinessMessagesDeleted.hpp.

◆ messageIds

std::vector<std::int32_t> tgbotxx::BusinessMessagesDeleted::messageIds

The list of identifiers of deleted messages in the chat of the business account.

Definition at line 23 of file BusinessMessagesDeleted.hpp.


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