|
tgbotxx 1.2.9.5
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. | |
| Ptr< Chat > | completedByChat |
| 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 10 of file ChecklistTask.hpp.
|
default |
|
inlineexplicit |
Definition at line 12 of file ChecklistTask.hpp.
Deserializes this object from JSON.
Definition at line 49 of file ChecklistTask.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 37 of file ChecklistTask.hpp.
Optional. User that completed the task; omitted if the task wasn't completed.
Definition at line 29 of file ChecklistTask.hpp.
Optional. User that completed the task; omitted if the task wasn't completed.
Definition at line 26 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 32 of file ChecklistTask.hpp.
| std::int32_t tgbotxx::ChecklistTask::id {} |
Unique identifier of the task.
Definition at line 17 of file ChecklistTask.hpp.
| std::string tgbotxx::ChecklistTask::text |
Text of the task.
Definition at line 20 of file ChecklistTask.hpp.
| std::vector<Ptr<MessageEntity> > tgbotxx::ChecklistTask::textEntities |
Optional. Special entities that appear in the task text.
Definition at line 23 of file ChecklistTask.hpp.