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