TransferChatOwnership class
Changes the owner of a chat. The current user must be a current owner of the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats.
Returns Ok.
- Inheritance
- Available Extensions
Constructors
- TransferChatOwnership({required int chat_id, required int user_id, required String password, int? extra, int? clientId})
- Changes the owner of a chat. The current user must be a current owner of the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session. Available only for supergroups and channel chats
Properties
- chat_id ↔ int
-
Chat identifier.
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
- password ↔ String
-
The 2-step verification password of the current user.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- user_id ↔ int
-
Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted user.
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) → TransferChatOwnership? -
Construct from Map.
override
Constants
- CONSTRUCTOR → const String
-
@type
"transferChatOwnership"