Parse the photo array into a list of PhotoSize objects
(cls, photo_size_array)
| 6375 | |
| 6376 | @classmethod |
| 6377 | def parse_photo(cls, photo_size_array) -> List[PhotoSize]: |
| 6378 | """ |
| 6379 | Parse the photo array into a list of PhotoSize objects |
| 6380 | """ |
| 6381 | ret = [] |
| 6382 | for ps in photo_size_array: |
| 6383 | ret.append(PhotoSize.de_json(ps)) |
| 6384 | return ret |
| 6385 | |
| 6386 | @classmethod |
| 6387 | def parse_entities(cls, message_entity_array) -> List[MessageEntity]: |