TransferChatOwnership class
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