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

Method de_json

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

Source from the content-addressed store, hash-verified

961
962 @classmethod
963 def de_json(cls, json_string):
964 if json_string is None: return None
965 obj = cls.check_json(json_string)
966 return cls(**obj)
967
968 def __init__(self, data, button_text, **kwargs):
969 self.data: str = data

Callers

nothing calls this directly

Calls 1

check_jsonMethod · 0.80

Tested by

no test coverage detected