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

Describes a task to add to a checklist. https://core.telegram.org/bots/api#inputchecklisttask. More...

#include <InputChecklistTask.hpp>

Public Member Functions

 InputChecklistTask ()=default
 
 InputChecklistTask (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::int32_t id {}
 Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist.
 
std::string text
 Text of the task; 1-100 characters after entities parsing.
 
std::string parseMode
 Optional. Mode for parsing entities in the text. See formatting options for more details.
 
std::vector< Ptr< MessageEntity > > textEntities
 Optional. List of special entities that appear in the text, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed.
 

Detailed Description

Describes a task to add to a checklist. https://core.telegram.org/bots/api#inputchecklisttask.

Definition at line 9 of file InputChecklistTask.hpp.

Constructor & Destructor Documentation

◆ InputChecklistTask() [1/2]

tgbotxx::InputChecklistTask::InputChecklistTask ( )
default

◆ InputChecklistTask() [2/2]

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

Definition at line 11 of file InputChecklistTask.hpp.

Member Function Documentation

◆ fromJson()

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

Deserializes this object from JSON.

Definition at line 40 of file InputChecklistTask.hpp.

◆ toJson()

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

Serializes this object to JSON.

Returns
JSON representation of this object

Definition at line 30 of file InputChecklistTask.hpp.

Member Data Documentation

◆ id

std::int32_t tgbotxx::InputChecklistTask::id {}

Unique identifier of the task; must be positive and unique among all task identifiers currently present in the checklist.

Definition at line 16 of file InputChecklistTask.hpp.

◆ parseMode

std::string tgbotxx::InputChecklistTask::parseMode

Optional. Mode for parsing entities in the text. See formatting options for more details.

Definition at line 22 of file InputChecklistTask.hpp.

◆ text

std::string tgbotxx::InputChecklistTask::text

Text of the task; 1-100 characters after entities parsing.

Definition at line 19 of file InputChecklistTask.hpp.

◆ textEntities

std::vector<Ptr<MessageEntity> > tgbotxx::InputChecklistTask::textEntities

Optional. List of special entities that appear in the text, which can be specified instead of parse_mode. Currently, only bold, italic, underline, strikethrough, spoiler, and custom_emoji entities are allowed.

Definition at line 26 of file InputChecklistTask.hpp.


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