import_messages

Function import_messages 

Source
pub async fn import_messages(
    chat_id: i64,
    message_file: InputFile,
    attached_files: Vec<InputFile>,
    client_id: i32,
) -> Result<(), Error>
Expand description

Imports messages exported from another app

ยงArguments

  • 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 member right
  • message_file - File with messages to import. Only inputFileLocal and inputFileGenerated are supported. The file must not be previously uploaded
  • attached_files - Files used in the imported messages. Only inputFileLocal and inputFileGenerated are supported. The files must not be previously uploaded
  • client_id - The client id to send the request to