lib/tdlib/client_methods.rb
# 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.
#
# @param chat_id [Integer] Chat identifier.
# @param user_id [Integer] Identifier of the user to which transfer the ownership.
#   The ownership can't be transferred to a bot or to a deleted user.
# @param password [TD::Types::String] The password of the current user.
# @return [TD::Types::Ok]
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.
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 .
def transfer_chat_ownership(chat_id:, user_id:, password:)
    broadcast('@type'    => 'transferChatOwnership',
              'chat_id'  => chat_id,
              'user_id'  => user_id,
              'password' => password)
  end
def transfer_chat_ownership ( chat_id : , user_id : , password : ) broadcast ( '@type' => 'transferChatOwnership' , 'chat_id' => chat_id , 'user_id' => user_id , 'password' => password ) end
Changes the owner of a chat.
Changes the owner of a chat .
None
TD::Types::Ok
chat_id
None
user_id
Identifier of the user to which transfer the ownership. The ownership can't be transferred to a bot or to a deleted user.
Identifier of the user to which transfer the ownership . The ownership can ' t be transferred to a bot or to a deleted user .
password
The password of the current user.
The password of the current user .