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

Contains information about the start page settings of a Telegram Business account. https://core.telegram.org/bots/api#businessintro. More...

#include <BusinessIntro.hpp>

Public Member Functions

 BusinessIntro ()=default
 
 BusinessIntro (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 title
 Optional. Title text of the business intro.
 
std::string message
 Optional. Message text of the business intro.
 
Ptr< Stickersticker
 Optional. Sticker of the business intro.
 

Detailed Description

Contains information about the start page settings of a Telegram Business account. https://core.telegram.org/bots/api#businessintro.

Definition at line 8 of file BusinessIntro.hpp.

Constructor & Destructor Documentation

◆ BusinessIntro() [1/2]

tgbotxx::BusinessIntro::BusinessIntro ( )
default

◆ BusinessIntro() [2/2]

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

Definition at line 10 of file BusinessIntro.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 35 of file BusinessIntro.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 26 of file BusinessIntro.hpp.

Member Data Documentation

◆ message

std::string tgbotxx::BusinessIntro::message

Optional. Message text of the business intro.

Definition at line 18 of file BusinessIntro.hpp.

◆ sticker

Ptr<Sticker> tgbotxx::BusinessIntro::sticker

Optional. Sticker of the business intro.

Definition at line 21 of file BusinessIntro.hpp.

◆ title

std::string tgbotxx::BusinessIntro::title

Optional. Title text of the business intro.

Definition at line 15 of file BusinessIntro.hpp.


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