UsersShared class abstract

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

Annotations
  • @freezed

Constructors

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

Properties

copyWith → $UsersSharedCopyWith<UsersShared>
Create a copy of UsersShared with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
requestId int
Identifier of the request
no setterinherited
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.
no setterinherited

Methods

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

Operators

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