KeyboardButtonTypeRequestUser class

A button that requests a user to be shared by the current user; available only in private chats. Use the method shareUserWithBot to complete the request.

Inheritance
Available Extensions

Constructors

KeyboardButtonTypeRequestUser({required int id, required bool restrict_user_is_bot, required bool user_is_bot, required bool restrict_user_is_premium, required bool user_is_premium, int? extra, int? clientId})
A button that requests a user to be shared by the current user; available only in private chats. Use the method shareUserWithBot to complete the request

Properties

clientId ↔ int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
extra ↔ int?
Request identifier. Must be non-zero.
read / writeoverride
hashCode → int
The hash code for this object.
read-onlyinherited
id ↔ int
Unique button identifier.
read / write
restrict_user_is_bot ↔ bool
True, if the shared user must or must not be a bot.
read / write
restrict_user_is_premium ↔ bool
True, if the shared user must or must not be a Telegram Premium user.
read / write
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited
user_is_bot ↔ bool
True, if the shared user must be a bot; otherwise, the shared user must no be a bot. Ignored if restrict_user_is_bot is false.
read / write
user_is_premium ↔ bool
True, if the shared user must be a Telegram Premium user; otherwise, the shared user must no be a Telegram Premium user. Ignored if restrict_user_is_premium is false.
read / write

Methods

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

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) → KeyboardButtonTypeRequestUser?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"keyboardButtonTypeRequestUser"