class Tourmaline::WriteAccessAllowed
inherits 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.
Included modules
JSON::Serializable
Constructors#
.new(from_request : Bool? = nil, web_app_name : String? = nil, from_attachment_menu : Bool? = nil)
#
(from_request : Bool? = nil, web_app_name : String? = nil, from_attachment_menu : Bool? = nil)
Methods#
#from_attachment_menu=(from_attachment_menu : Bool?)
#
(from_attachment_menu : Bool?)
Optional. True, if the access was granted when the bot was added to the attachment or side menu
#from_attachment_menu? : Bool?
#
: Bool?
Optional. True, if the access was granted when the bot was added to the attachment or side menu
#from_request=(from_request : Bool?)
#
(from_request : Bool?)
Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess
#from_request? : Bool?
#
: Bool?
Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess
#web_app_name : String?
#
: String?
Optional. Name of the Web App, if the access was granted when the Web App was launched from a link
#web_app_name=(web_app_name : String?)
#
(web_app_name : String?)
Optional. Name of the Web App, if the access was granted when the Web App was launched from a link