tgbot-cpp
Loading...
Searching...
No Matches
TgBot::WriteAccessAllowed Class 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 <WriteAccessAllowed.h>

Public Types

typedef std::shared_ptr< WriteAccessAllowedPtr
 

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.
 

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 14 of file WriteAccessAllowed.h.

Member Typedef Documentation

◆ Ptr

Definition at line 16 of file WriteAccessAllowed.h.

Member Data Documentation

◆ fromAttachmentMenu

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.

◆ fromRequest

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.

◆ webAppName

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.


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