class
Hamilton::Types::WriteAccessAllowed
- Hamilton::Types::WriteAccessAllowed
- Reference
- Object
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
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/write_access_allowed.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#from_attachment_menu : Bool | Nil
True, if the access was granted when the bot was added to the attachment or side menu.
-
#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.
-
#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.
-
#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.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#web_app_name : String | Nil
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 | Nil)
Name of the Web App, if the access was granted when the Web App was launched from a link.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess.
True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess.
Name of the Web App, if the access was granted when the Web App was launched from a link.
Name of the Web App, if the access was granted when the Web App was launched from a link.