| 1 | <?php |
||
| 15 | class File extends Entity |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var mixed|null |
||
| 19 | */ |
||
| 20 | protected $file_id; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var mixed|null |
||
| 24 | */ |
||
| 25 | protected $file_size; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var mixed|null |
||
| 29 | */ |
||
| 30 | protected $file_path; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * File constructor. |
||
| 34 | * |
||
| 35 | * @param array $data |
||
| 36 | * @throws \Longman\TelegramBot\Exception\TelegramException |
||
| 37 | */ |
||
| 38 | 8 | public function __construct(array $data) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * Get file id |
||
| 52 | * |
||
| 53 | * @return mixed|null |
||
| 54 | */ |
||
| 55 | 1 | public function getFileId() |
|
| 59 | |||
| 60 | /** |
||
| 61 | * Get file size |
||
| 62 | * |
||
| 63 | * @return mixed|null |
||
| 64 | */ |
||
| 65 | 2 | public function getFileSize() |
|
| 69 | |||
| 70 | /** |
||
| 71 | * Get file path |
||
| 72 | * |
||
| 73 | * @return mixed|null |
||
| 74 | */ |
||
| 75 | 2 | public function getFilePath() |
|
| 79 | } |
||
| 80 |