WriteAccessRequestedEvent class

Bot API 6.9+ Occurs when the write permission was requested. eventHandler receives an object with the single field status containing one of the statuses:

  • allowed – user granted write permission to the bot,
  • cancelled – user declined this request.
Inheritance

Constructors

WriteAccessRequestedEvent(void eventHandler(WriteAccessRequestedPayload result))

Properties

eventHandler JSExportedDartFunction
finalinherited
eventType TelegramEventType
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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