1 | <?php |
||
16 | */ |
||
17 | class UserProfilePhotos extends TelegramTypes |
||
18 | { |
||
19 | /** |
||
20 | * Total number of profile pictures the target user has |
||
21 | * @var int |
||
22 | */ |
||
23 | public $total_count = 0; |
||
24 | |||
25 | /** |
||
26 | * Requested profile pictures (in up to 4 sizes each) |
||
27 | * NOTE: Is an array of an array of PhotoSize objects |
||
28 | * |
||
29 | * @var array |
||
30 | */ |
||
31 | public $photos = []; |
||
32 | |||
33 | 3 | protected function mapSubObjects(string $key, array $data): TelegramTypes |
|
34 | { |
||
35 | switch ($key) { |
||
36 | 3 | case 'photos': |
|
37 | 3 | return new UserProfilePhotosArray($data, $this->logger); |
|
38 | } |
||
39 | |||
43 |