MadelineProto/docs/TD_docs/constructors/updateFile.md

45 lines
648 B
Markdown
Raw Normal View History

---
title: updateFile
description: File is downloaded/uploaded
---
## Constructor: updateFile
[Back to constructors index](index.md)
File is downloaded/uploaded
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|file|[file](../types/file.md) | Yes|Synced file|
### Type: [Update](../types/Update.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$updateFile = ['_' => 'updateFile', 'file' => file];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "updateFile", "file": file}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
updateFile={_='updateFile', file=file}
```