| tgbot-cpp
    | 
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. More...
#include <WriteAccessAllowed.h>
| Public Types | |
| typedef std::shared_ptr< WriteAccessAllowed > | Ptr | 
| 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 (https://core.telegram.org/bots/webapps#initializing-mini-apps) | |
| std::string | webAppName | 
| Optional. Name of the Web App, if the access was granted when the Web App was launched from a link. | |
| bool | fromAttachmentMenu | 
| Optional. True, if the access was granted when the bot was added to the attachment or side menu. | |
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.
Definition at line 14 of file WriteAccessAllowed.h.
| typedef std::shared_ptr<WriteAccessAllowed> TgBot::WriteAccessAllowed::Ptr | 
Definition at line 16 of file WriteAccessAllowed.h.
| bool TgBot::WriteAccessAllowed::fromAttachmentMenu | 
Optional. True, if the access was granted when the bot was added to the attachment or side menu.
Definition at line 31 of file WriteAccessAllowed.h.
| bool TgBot::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 (https://core.telegram.org/bots/webapps#initializing-mini-apps)
Definition at line 21 of file WriteAccessAllowed.h.
| std::string TgBot::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 26 of file WriteAccessAllowed.h.