ContactRequestedEvent class

Bot API 6.9+ Occurrs when the user's phone number was requested. eventHandler receives an object with the single field status containing one of the statuses:

  • sent – user shared their phone number with the bot,
  • cancelled – user declined this request.
Inheritance

Constructors

ContactRequestedEvent(void eventHandler(ContactRequestedPayload payload))

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