KeyboardButtonTypeRequestChat class final
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
- TdObject
- KeyboardButtonType
- KeyboardButtonTypeRequestChat
Constructors
- KeyboardButtonTypeRequestChat({required int id, required bool chatIsChannel, required bool restrictChatIsForum, required bool chatIsForum, required bool restrictChatHasUsername, required bool chatHasUsername, required bool chatIsCreated, ChatAdministratorRights? userAdministratorRights, ChatAdministratorRights? botAdministratorRights, required bool botIsMember})
-
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
const
-
KeyboardButtonTypeRequestChat.fromJson(Map<
String, dynamic> json) -
Parses a KeyboardButtonTypeRequestChat from TDLib JSON.
factory
Properties
- botAdministratorRights → ChatAdministratorRights?
-
Expected bot administrator rights in the chat; may be null if they aren't restricted
final
- botIsMember → bool
-
True, if the bot must be a member of the chat; for basic group and supergroup chats only
final
- chatHasUsername → 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
final
- chatIsChannel → bool
-
True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared
final
- chatIsCreated → bool
-
True, if the chat must be created by the current user
final
- chatIsForum → 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
final
- clientId → int?
-
Identifier of the TDLib client that sent this object, when known.
no setterinherited
- extra → dynamic
-
"@extra" of the request this object answers; null for updates.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Unique button identifier
final
- restrictChatHasUsername → bool
-
True, if the chat must or must not have a username
final
- restrictChatIsForum → bool
-
True, if the chat must or must not be a forum supergroup
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- userAdministratorRights → ChatAdministratorRights?
-
Expected user administrator rights in the chat; may be null if they aren't restricted
final
Methods
-
copyWith(
{int? id, bool? chatIsChannel, bool? restrictChatIsForum, bool? chatIsForum, bool? restrictChatHasUsername, bool? chatHasUsername, bool? chatIsCreated, ChatAdministratorRights? userAdministratorRights()?, ChatAdministratorRights? botAdministratorRights()?, bool? botIsMember}) → KeyboardButtonTypeRequestChat -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it.override -
getConstructor(
) → String -
TDLib type name, e.g.
updateNewMessage.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this object to TDLib JSON.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.