| 1 | <?php |
||
| 10 | class TelegramDocument |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The mime type of this file |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | public $mime_type = ''; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * The actual contents of this file |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | public $contents = ''; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The file size |
||
| 26 | * @var int |
||
| 27 | */ |
||
| 28 | public $file_size = 0; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Constructs a representable document |
||
| 32 | * |
||
| 33 | * @param TelegramResponse $response |
||
| 34 | */ |
||
| 35 | 1 | public function __construct(TelegramResponse $response) |
|
| 47 | |||
| 48 | /** |
||
| 49 | * When called with string-ish functions, assume we want the actual contents of the file |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 1 | public function __toString() |
|
| 56 | } |
||
| 57 |