JsonAttachment
represents a file attached to a message. When sending, only filename is required.
This type can contain the following fields:
| field | type | info | 
|---|---|---|
| blurhash | String | |
| caption | String | |
| contentType | String | |
| customFilename | String | the original name of the file | 
| digest | String | |
| filename | String | when sending, the path to the local file to upload | 
| height | int | |
| id | String | |
| key | String | |
| size | int | |
| storedFilename | String | when receiving, the path that file has been downloaded to | 
| voiceNote | boolean | |
| width | int | 
- v1.StoryMessage.file
- v1.JsonPreview.attachment
- v1.SendRequest.attachments
- v1.JsonSyncMessage.contacts
- v1.JsonSyncMessage.groups
- v1.JsonDataMessage.attachments
- v1.SharedContactAvatar.attachment