UsersShared class

This object contains information about the users whose identifiers were shared with the bot using a KeyboardButtonRequestUsers button.

https://core.telegram.org/bots/api#usershared

Constructors

UsersShared({required int requestId, required List<SharedUser> users})
Constructs a UsersShared object
const
UsersShared.fromJson(Map<String, dynamic> json)
Creates a UsersShared object from JSON object
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
requestId int
Identifier of the request
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
users List<SharedUser>
Identifiers of the shared users. These numbers may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting them. But they have at most 52 significant bits, so 64-bit integers or double-precision float types are safe for storing these identifiers. The bot may not have access to the users and could be unable to use these identifiers, unless the users are already known to the bot by some other means.
final

Methods

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

Operators

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