tgbotxx
1.1.6.9
Telegram Bot C++ Library
|
This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess. https://core.telegram.org/bots/api#writeaccessallowed. More...
#include <WriteAccessAllowed.hpp>
Public Member Functions | |
WriteAccessAllowed ()=default | |
WriteAccessAllowed (const nl::json &json) | |
nl::json | toJson () const |
Serializes this object to JSON. More... | |
void | fromJson (const nl::json &json) |
Deserializes this object from JSON. More... | |
Public Attributes | |
bool | fromRequest {} |
Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess. More... | |
std::string | webAppName |
Optional. Name of the Web App, if the access was granted when the Web App was launched from a link. More... | |
bool | fromAttachmentMenu {} |
Optional. True, if the access was granted when the bot was added to the attachment or side menu. More... | |
This object represents a service message about a user allowing a bot to write messages after adding it to the attachment menu, launching a Web App from a link, or accepting an explicit request from a Web App sent by the method requestWriteAccess. https://core.telegram.org/bots/api#writeaccessallowed.
Definition at line 8 of file WriteAccessAllowed.hpp.
|
default |
|
inlineexplicit |
Definition at line 10 of file WriteAccessAllowed.hpp.
|
inline |
Deserializes this object from JSON.
Definition at line 34 of file WriteAccessAllowed.hpp.
|
inline |
Serializes this object to JSON.
Definition at line 25 of file WriteAccessAllowed.hpp.
bool tgbotxx::WriteAccessAllowed::fromAttachmentMenu {} |
Optional. True, if the access was granted when the bot was added to the attachment or side menu.
Definition at line 21 of file WriteAccessAllowed.hpp.
bool tgbotxx::WriteAccessAllowed::fromRequest {} |
Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess.
Definition at line 15 of file WriteAccessAllowed.hpp.
std::string tgbotxx::WriteAccessAllowed::webAppName |
Optional. Name of the Web App, if the access was granted when the Web App was launched from a link.
Definition at line 18 of file WriteAccessAllowed.hpp.