|
tgbotxx 1.1.9.2
Telegram Bot C++ Library
|
Describes a checklist. https://core.telegram.org/bots/api#checklist. More...
#include <Checklist.hpp>
Public Member Functions | |
| Checklist ()=default | |
| Checklist (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 |
| Title of the checklist. | |
| std::vector< Ptr< MessageEntity > > | titleEntities |
| Optional. Special entities that appear in the checklist title. | |
| std::vector< Ptr< ChecklistTask > > | tasks |
| List of tasks in the checklist. | |
| bool | othersCanAddTasks {} |
| Optional. True, if users other than the creator of the list can add tasks to the list. | |
| bool | othersCanMarkTasksAsDone {} |
| Optional. True, if users other than the creator of the list can mark tasks as done or not done. | |
Describes a checklist. https://core.telegram.org/bots/api#checklist.
Definition at line 9 of file Checklist.hpp.
|
default |
|
inlineexplicit |
Definition at line 11 of file Checklist.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 44 of file Checklist.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 33 of file Checklist.hpp.
| bool tgbotxx::Checklist::othersCanAddTasks {} |
Optional. True, if users other than the creator of the list can add tasks to the list.
Definition at line 25 of file Checklist.hpp.
| bool tgbotxx::Checklist::othersCanMarkTasksAsDone {} |
Optional. True, if users other than the creator of the list can mark tasks as done or not done.
Definition at line 28 of file Checklist.hpp.
| std::vector<Ptr<ChecklistTask> > tgbotxx::Checklist::tasks |
List of tasks in the checklist.
Definition at line 22 of file Checklist.hpp.
| std::string tgbotxx::Checklist::title |
Title of the checklist.
Definition at line 16 of file Checklist.hpp.
| std::vector<Ptr<MessageEntity> > tgbotxx::Checklist::titleEntities |
Optional. Special entities that appear in the checklist title.
Definition at line 19 of file Checklist.hpp.