class Tourmaline::WriteAccessAllowed

Overview

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.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(from_request : Bool | Nil = nil, web_app_name : String | Nil = nil, from_attachment_menu : Bool | Nil = nil) #

[View source]

Instance Method Detail

def from_attachment_menu=(from_attachment_menu : Bool | Nil) #

Optional. True, if the access was granted when the bot was added to the attachment or side menu


[View source]
def from_attachment_menu? : Bool | Nil #

Optional. True, if the access was granted when the bot was added to the attachment or side menu


[View source]
def from_request=(from_request : Bool | Nil) #

Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess


[View source]
def from_request? : Bool | Nil #

Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess


[View source]
def web_app_name : String | Nil #

Optional. Name of the Web App, if the access was granted when the Web App was launched from a link


[View source]
def web_app_name=(web_app_name : String | Nil) #

Optional. Name of the Web App, if the access was granted when the Web App was launched from a link


[View source]