TransferChatOwnership class

Inheritance

Constructors

TransferChatOwnership({required int chatId, required int userId, required String password})
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
const

Properties

chatId int
chatId Chat identifier
final
hashCode int
The hash code for this object.
no setterinherited
password String
password The password of the current user
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId int
userId Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted user
final

Methods

copyWith({int? chatId, int? userId, String? password}) TransferChatOwnership
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

CONSTRUCTOR → const String