MadelineProtoDocs/old_docs/API_docs_v38/types/InputFile.md

35 lines
814 B
Markdown
Raw Permalink Normal View History

2018-04-01 13:19:25 +02:00
---
title: InputFile
description: constructors and methods of type InputFile
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2020-06-16 17:50:25 +02:00
# Type: InputFile
2018-04-01 13:19:25 +02:00
[Back to types index](index.md)
The following syntax can also be used:
2020-06-16 17:50:25 +02:00
```php
2018-04-01 13:19:25 +02:00
$InputFile = 'filename.mp4'; // The file path can also be used
2020-06-16 17:50:25 +02:00
$InputFile = 'https://google.com'; // A URL can also be used
2018-04-01 13:19:25 +02:00
```
2020-06-16 17:50:25 +02:00
You can also use async streams, HTTP response objects, and [much more](https://docs.madelineproto.xyz/docs/FILES.html#downloading-files)!
2018-04-01 13:19:25 +02:00
### Possible values (constructors):
[inputFile](../constructors/inputFile.md)
[inputFileBig](../constructors/inputFileBig.md)
### Methods that return an object of this type (methods):
2020-06-16 17:50:25 +02:00
[inputFile](../constructors/inputFile.md)
[inputFileBig](../constructors/inputFileBig.md)