lib/tdlib/client_methods.rb
# Imports messages exported from another app.
#
# @param chat_id [Integer] Identifier of a chat to which the messages will be imported.
#   It must be an identifier of a private chat with a mutual contact or an identifier of a supergroup chat with
#   can_change_info administrator right.
# @param message_file [TD::Types::InputFile] File with messages to import.
#   Only {TD::Types::InputFile::Local} and {TD::Types::InputFile::Generated} are supported.
#   The file must not be previously uploaded.
# @param attached_files [Array<TD::Types::InputFile>] Files used in the imported messages.
#   Only {TD::Types::InputFile::Local} and {TD::Types::InputFile::Generated} are supported.
#   The files must not be previously uploaded.
# @return [TD::Types::Ok]
Imports messages exported from another app.
Imports messages exported from another app .
def import_messages(chat_id:, message_file:, attached_files:)
    broadcast('@type'          => 'importMessages',
              'chat_id'        => chat_id,
              'message_file'   => message_file,
              'attached_files' => attached_files)
  end
def import_messages ( chat_id : , message_file : , attached_files : ) broadcast ( '@type' => 'importMessages' , 'chat_id' => chat_id , 'message_file' => message_file , 'attached_files' => attached_files ) end
Imports messages exported from another app.
Imports messages exported from another app .
None
TD::Types::Ok
chat_id
Identifier of a chat to which the messages will be imported. It must be an identifier of a private chat with a mutual contact or an identifier of a supergroup chat with can_change_info administrator right.
Identifier of a chat to which the messages will be imported . It must be an identifier of a private chat with a mutual contact or an identifier of a supergroup chat with can_change_info administrator right .
message_file
File with messages to import. Only {TD::Types::InputFile::Local} and {TD::Types::InputFile::Generated} are supported. The file must not be previously uploaded.
File with messages to import . Only { TD :: Types :: InputFile :: Local } and { TD :: Types :: InputFile :: Generated } are supported . The file must not be previously uploaded .
attached_files
Files used in the imported messages. Only {TD::Types::InputFile::Local} and {TD::Types::InputFile::Generated} are supported. The files must not be previously uploaded.
Files used in the imported messages . Only { TD :: Types :: InputFile :: Local } and { TD :: Types :: InputFile :: Generated } are supported . The files must not be previously uploaded .