diff --git a/telebot/types.py b/telebot/types.py index f67afed7d..4056112ec 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -13993,6 +13993,12 @@ def __init__(self, center_color: int, edge_color: int, text_color: int, **kwargs self.edge_color: int = edge_color self.text_color: int = text_color + @classmethod + def de_json(cls, json_string): + if json_string is None: return None + obj = cls.check_json(json_string) + return cls(**obj) + class SuggestedPostApprovalFailed(JsonDeserializable): """ Describes a service message about the failed approval of a suggested post.