tgbotxx  1.1.6.9
Telegram Bot C++ Library
tgbotxx::SentWebAppMessage Struct Reference

Describes an inline message sent by a Web App on behalf of a user. https://core.telegram.org/bots/api#story. More...

#include <SentWebAppMessage.hpp>

Public Member Functions

 SentWebAppMessage ()=default
 
 SentWebAppMessage (const nl::json &json)
 
nl::json toJson () const
 Serializes this object to JSON. More...
 
void fromJson ([[maybe_unused]] const nl::json &json)
 Deserializes this object from JSON. More...
 

Public Attributes

std::string inlineMessageId
 Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message. More...
 

Detailed Description

Describes an inline message sent by a Web App on behalf of a user. https://core.telegram.org/bots/api#story.

Definition at line 7 of file SentWebAppMessage.hpp.

Constructor & Destructor Documentation

◆ SentWebAppMessage() [1/2]

tgbotxx::SentWebAppMessage::SentWebAppMessage ( )
default

◆ SentWebAppMessage() [2/2]

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

Definition at line 9 of file SentWebAppMessage.hpp.

Member Function Documentation

◆ fromJson()

void tgbotxx::SentWebAppMessage::fromJson ( [[maybe_unused] ] const nl::json &  json)
inline

Deserializes this object from JSON.

Definition at line 26 of file SentWebAppMessage.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 19 of file SentWebAppMessage.hpp.

Member Data Documentation

◆ inlineMessageId

std::string tgbotxx::SentWebAppMessage::inlineMessageId

Optional. Identifier of the sent inline message. Available only if there is an inline keyboard attached to the message.

Definition at line 15 of file SentWebAppMessage.hpp.


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