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

Method parse_entities

telebot/types.py:6387–6394  ·  view source on GitHub ↗

Parse the message entity array into a list of MessageEntity objects

(cls, message_entity_array)

Source from the content-addressed store, hash-verified

6385
6386 @classmethod
6387 def parse_entities(cls, message_entity_array) -> List[MessageEntity]:
6388 """
6389 Parse the message entity array into a list of MessageEntity objects
6390 """
6391 ret = []
6392 for me in message_entity_array:
6393 ret.append(MessageEntity.de_json(me))
6394 return ret
6395
6396 def __init__(self, title, description, photo, text=None, text_entities=None, animation=None, **kwargs):
6397 self.title: str = title

Callers 6

de_jsonMethod · 0.45
de_jsonMethod · 0.45
de_jsonMethod · 0.45
de_jsonMethod · 0.45
de_jsonMethod · 0.45
de_jsonMethod · 0.45

Calls 1

de_jsonMethod · 0.45

Tested by

no test coverage detected