From 6a4c7e731b80e1187a4f9423ae6e7594e2e6be4f Mon Sep 17 00:00:00 2001 From: uburuntu Date: Fri, 17 Aug 2018 12:46:40 +0300 Subject: [PATCH] fix: delete doubled Sticker class (left a new one) --- telebot/types.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/telebot/types.py b/telebot/types.py index 7340c10..884e3d4 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -598,29 +598,6 @@ class Document(JsonDeserializable): self.file_size = file_size -class Sticker(JsonDeserializable): - @classmethod - def de_json(cls, json_string): - obj = cls.check_json(json_string) - file_id = obj['file_id'] - width = obj['width'] - height = obj['height'] - thumb = None - if 'thumb' in obj: - thumb = PhotoSize.de_json(obj['thumb']) - emoji = obj.get('emoji') - file_size = obj.get('file_size') - return cls(file_id, width, height, thumb, emoji, file_size) - - def __init__(self, file_id, width, height, thumb, emoji=None, file_size=None): - self.file_id = file_id - self.width = width - self.height = height - self.thumb = thumb - self.emoji = emoji - self.file_size = file_size - - class Video(JsonDeserializable): @classmethod def de_json(cls, json_string):