ChatShared class

This object contains information about the chat whose identifier was shared with the bot using a KeyboardButtonRequestChat button.

Constructors

ChatShared(int requestId, int userId)
Basic constructor

Properties

hashCode int
The hash code for this object.
no setterinherited
requestId int
Identifier of the request
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId int
Identifier of the shared user. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot may not have access to the user and could be unable to use this identifier, unless the user is already known to the bot by some other means.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map
Creates a json from the object
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Map<String, dynamic> json) ChatShared
Creates a object from a json