tgbot-cpp
Loading...
Searching...
No Matches
TgBot::WriteAccessAllowed Struct Reference

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 <Types.h>

Public Types

using Ptr = std::shared_ptr<WriteAccessAllowed>

Public Attributes

std::optional< 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.
std::optional< std::string > webAppName { }
 Optional. Name of the Web App, if the access was granted when the Web App was launched from a link.
std::optional< bool > fromAttachmentMenu { }
 Optional. True, if the access was granted when the bot was added to the attachment or side menu.

Detailed Description

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 15422 of file Types.h.

Member Typedef Documentation

◆ Ptr

Definition at line 15423 of file Types.h.

Member Data Documentation

◆ fromAttachmentMenu

std::optional<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 15441 of file Types.h.

◆ fromRequest

std::optional<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.

Definition at line 15429 of file Types.h.

◆ webAppName

std::optional<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 15435 of file Types.h.


The documentation for this struct was generated from the following file: