TransferChatOwnership class

Inheritance

Constructors

TransferChatOwnership({int chatId, int userId, 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
TransferChatOwnership.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

chatId int
chatId Chat identifier
read / write
extra ↔ dynamic
callback sign
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
password String
password The password of the current user
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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
read / write

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() 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
'transferChatOwnership'