MCPcopy Index your code
hub / github.com/eternnoir/pyTelegramBotAPI / de_json

Method de_json

telebot/types.py:1985–1990  ·  view source on GitHub ↗
(cls, json_string)

Source from the content-addressed store, hash-verified

1983
1984 @classmethod
1985 def de_json(cls, json_string):
1986 if json_string is None: return None
1987 obj = cls.check_json(json_string)
1988 if 'user' in obj:
1989 obj['user'] = User.de_json(obj['user'])
1990 return cls(**obj)
1991
1992 def __init__(self, type, offset, length, url=None, user=None, language=None, custom_emoji_id=None,
1993 unix_time=None, date_time_format=None, **kwargs):

Callers

nothing calls this directly

Calls 2

check_jsonMethod · 0.80
de_jsonMethod · 0.45

Tested by

no test coverage detected