TransferChatOwnership constructor

const TransferChatOwnership({
  1. required int chatId,
  2. required int userId,
  3. required String password,
})

Changes the owner of a chat; for basic groups, supergroups and channel chats only; requires owner privileges in the chat. Use the method canTransferOwnership to check whether the ownership can be transferred from the current session

Implementation

const TransferChatOwnership({
  required this.chatId,
  required this.userId,
  required this.password,
});