Layer 220
MessagesUploadEncryptedFile
Upload encrypted file and associate it to a secret chat (without actually sending it to the chat).
method
Users
messages.uploadEncryptedFile#5057c497 peer:InputEncryptedChat file:InputEncryptedFile = EncryptedFile;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputEncryptedChat | The secret chat to associate the file to |
| File | InputEncryptedFile | The file |
Returns
EncryptedFilePossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHAT_ID_INVALID | The provided chat id is invalid. |
Gogram Example
// MessagesUploadEncryptedFile - positional arguments result, err := client.MessagesUploadEncryptedFile(&tg.InputEncryptedChat{}, &tg.InputEncryptedFileUploaded{}) if err != nil { // handle error } // result is *tg.EncryptedFile