Skip to content

importMessages

Function · TDLib 1.8.67 · d1085f9c

Imports messages exported from another application

importMessages(
  chat_id: int53,
  message_file: InputFile,
  attached_files: list of InputFile
) → Ok

chat_id

int53

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

InputFile

File with messages to import. Only inputFileLocal and inputFileGenerated are supported. The file must not be previously uploaded

attached_files

list of InputFile

Files used in the imported messages. Only inputFileLocal and inputFileGenerated are supported. The files must not be previously uploaded