WriteAccessAllowed class

This object represents a service message about a user allowing a bot added to the attachment menu to write messages.

Constructors

WriteAccessAllowed({String? webAppName, bool? fromAttachmentMenu, bool? fromRequest})
Constructs a WriteAccessAllowed object
const
WriteAccessAllowed.fromJson(Map<String, dynamic> json)
Creates a WriteAccessAllowed object from JSON object
factory

Properties

fromAttachmentMenu bool?
Optional. True, if the access was granted when the bot was added to the attachment or side menu
final
fromRequest bool?
Optional. True, if the access was granted after the user accepted an explicit request from a Web App sent by the method requestWriteAccess
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
webAppName String?
Name of the connected website. Present only if the user allowed the bot to send them messages.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts a WriteAccessAllowed object to JSON object
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited