class Hamilton::Types::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:

types/write_access_allowed.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

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

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def from_attachment_menu : Bool | Nil #

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


def from_attachment_menu=(from_attachment_menu : Bool | Nil) #

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


def from_request : Bool | Nil #

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


def from_request=(from_request : Bool | Nil) #

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


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def web_app_name : String | Nil #

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


def web_app_name=(web_app_name : String | Nil) #

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