struct

Telegram::WriteAccessAllowed

Inherits JSON::Serializable < Struct < Value < Object

Telegram API type: WriteAccessAllowed 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.

Constructors

new(from_request : Bool | Nil = nil, web_app_name : String | Nil = nil, from_attachment_menu : Bool | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

clone
Source
copy_with(from_request _from_request = @from_request, web_app_name _web_app_name = @web_app_name, from_attachment_menu _from_attachment_menu = @from_attachment_menu)
Source
from_attachment_menu
from_request
web_app_name