public static class TdApi.ImportMessages extends TdApi.Function<TdApi.Ok>
Returns Ok
| Modifier and Type | Field and Description |
|---|---|
TdApi.InputFile[] |
attachedFiles
Files used in the imported messages.
|
long |
chatId
Identifier of a chat to which the messages will be imported.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.InputFile |
messageFile
File with messages to import.
|
| Constructor and Description |
|---|
ImportMessages()
Default constructor for a function, which imports messages exported from another app.
|
ImportMessages(long chatId,
TdApi.InputFile messageFile,
TdApi.InputFile[] attachedFiles)
Creates a function, which imports messages exported from another app.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getConstructor()
Returns an identifier uniquely determining type of the object.
|
toStringpublic long chatId
public TdApi.InputFile messageFile
public TdApi.InputFile[] attachedFiles
public static final int CONSTRUCTOR
public ImportMessages()
Returns Ok
public ImportMessages(long chatId,
TdApi.InputFile messageFile,
TdApi.InputFile[] attachedFiles)
Returns Ok
chatId - 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 canChangeInfo member right.messageFile - File with messages to import. Only inputFileLocal and inputFileGenerated are supported. The file must not be previously uploaded.attachedFiles - Files used in the imported messages. Only inputFileLocal and inputFileGenerated are supported. The files must not be previously uploaded.public int getConstructor()
TdApi.ObjectgetConstructor in class TdApi.Object