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 rightmessage_file
- File with messages to import. Only inputFileLocal and inputFileGenerated are supported. The file must not be previously uploadedattached_files
- Files used in the imported messages. Only inputFileLocal and inputFileGenerated are supported. The files must not be previously uploadedclient_id
- The client id to send the request to