TransferChatOwnership constructor

TransferChatOwnership(
  1. {required int chat_id,
  2. required int user_id,
  3. required String password,
  4. int? extra,
  5. 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

Returns Ok

Implementation

TransferChatOwnership