KeyboardButtonRequestUsers class

This object defines the criteria used to request a suitable user. The identifier of the selected user will be shared with the bot when the corresponding button is pressed.

Constructors

KeyboardButtonRequestUsers({required int requestId, bool? userIsBot, bool? userIsPremium, int? maxQuantity, bool? requestName, bool? requestUsername, bool? requestPhoto})
Creates a new KeyboardButtonRequestUsers object
const
KeyboardButtonRequestUsers.fromJson(Map<String, dynamic> json)
Creates a new KeyboardButtonRequestUsers from a JSON object.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
maxQuantity int?
Optional. The maximum number of users to be selected; 1-10. Defaults to 1.
final
requestId int
Signed 32-bit identifier of the request
final
requestName bool?
Optional. Pass True to request the users' first and last name
final
requestPhoto bool?
Optional. Pass True to request the users' photo
final
requestUsername bool?
Optional. Pass True to request the users' username
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userIsBot bool?
Optional. Pass True to request a bot, pass False to request a regular user. If not specified, no additional restrictions are applied.
final
userIsPremium bool?
Optional. Pass True to request a premium user, pass False to request a non-premium user. If not specified, no additional restrictions are applied.
final

Methods

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

Operators

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