|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Describes a task in a checklist. https://core.telegram.org/bots/api#checklisttask. More...
#include <ChecklistTask.hpp>
Public Member Functions | |
| ChecklistTask ()=default | |
| ChecklistTask (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. | |
| std::string | text |
| Text of the task. | |
| std::vector< Ptr< MessageEntity > > | textEntities |
| Optional. Special entities that appear in the task text. | |
| Ptr< User > | completedByUser |
| Optional. User that completed the task; omitted if the task wasn't completed. | |
| std::time_t | completionDate {} |
| Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed. | |
Describes a task in a checklist. https://core.telegram.org/bots/api#checklisttask.
Definition at line 9 of file ChecklistTask.hpp.
|
default |
|
inlineexplicit |
Definition at line 11 of file ChecklistTask.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 44 of file ChecklistTask.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 33 of file ChecklistTask.hpp.
Optional. User that completed the task; omitted if the task wasn't completed.
Definition at line 25 of file ChecklistTask.hpp.
| std::time_t tgbotxx::ChecklistTask::completionDate {} |
Optional. Point in time (Unix timestamp) when the task was completed; 0 if the task wasn't completed.
Definition at line 28 of file ChecklistTask.hpp.
| std::int32_t tgbotxx::ChecklistTask::id {} |
Unique identifier of the task.
Definition at line 16 of file ChecklistTask.hpp.
| std::string tgbotxx::ChecklistTask::text |
Text of the task.
Definition at line 19 of file ChecklistTask.hpp.
| std::vector<Ptr<MessageEntity> > tgbotxx::ChecklistTask::textEntities |
Optional. Special entities that appear in the task text.
Definition at line 22 of file ChecklistTask.hpp.