MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / parse_photo

Method parse_photo

telebot/types.py:6377–6384  ·  view source on GitHub ↗

Parse the photo array into a list of PhotoSize objects

(cls, photo_size_array)

Source from the content-addressed store, hash-verified

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]:

Callers 3

de_jsonMethod · 0.45
de_jsonMethod · 0.45
de_jsonMethod · 0.45

Calls 1

de_jsonMethod · 0.45

Tested by

no test coverage detected