KeyboardButtonTypeRequestChat class
A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request.
- Inheritance
-
- Object
- TlObject
- KeyboardButtonType
- KeyboardButtonTypeRequestChat
- Available Extensions
Constructors
- KeyboardButtonTypeRequestChat({required int id, required bool chat_is_channel, required bool restrict_chat_is_forum, required bool chat_is_forum, required bool restrict_chat_has_username, required bool chat_has_username, required bool chat_is_created, ChatAdministratorRights? user_administrator_rights, ChatAdministratorRights? bot_administrator_rights, required bool bot_is_member, int? extra, int? clientId})
- A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request
Properties
- bot_administrator_rights ↔ ChatAdministratorRights?
-
Expected bot administrator rights in the chat; may be null if they aren't restricted.
read / write
- bot_is_member ↔ bool
-
True, if the bot must be a member of the chat; for basic group and supergroup chats only.
read / write
- chat_has_username ↔ bool
-
True, if the chat must have a username; otherwise, the chat must not have a username. Ignored if restrict_chat_has_username is false.
read / write
- chat_is_channel ↔ bool
-
True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared.
read / write
- chat_is_created ↔ bool
-
True, if the chat must be created by the current user.
read / write
- chat_is_forum ↔ bool
-
True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup. Ignored if restrict_chat_is_forum is false.
read / write
- 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_chat_has_username ↔ bool
-
True, if the chat must or must not have a username.
read / write
- restrict_chat_is_forum ↔ bool
-
True, if the chat must or must not be a forum supergroup.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- user_administrator_rights ↔ ChatAdministratorRights?
-
Expected user administrator rights in the chat; may be null if they aren't restricted.
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) → KeyboardButtonTypeRequestChat? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"keyboardButtonTypeRequestChat"