diff --git a/setup.py b/setup.py index a5d06f7c4..6c78ce9a8 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ def readme(): return f.read() setup(name='pyTelegramBotAPI', - version='3.5.0', + version='3.5.1', description='Python Telegram bot api. ', long_description=readme(), author='eternnoir', diff --git a/telebot/apihelper.py b/telebot/apihelper.py index 6b52f7201..8dd78c315 100644 --- a/telebot/apihelper.py +++ b/telebot/apihelper.py @@ -258,7 +258,6 @@ def send_photo(token, chat_id, photo, caption=None, reply_to_message_id=None, re def send_media_group(token, chat_id, media, disable_notification=None, reply_to_message_id=None): method_url = r'sendMediaGroup' media_json = _convert_list_json_serializable(media) - print(media_json) payload = {'chat_id': chat_id, 'media': media_json} if disable_notification: payload['disable_notification'] = disable_notification diff --git a/telebot/types.py b/telebot/types.py index 32d987408..1621b1ed2 100644 --- a/telebot/types.py +++ b/telebot/types.py @@ -333,10 +333,13 @@ def de_json(cls, json_string): content_type = 'left_chat_member' if 'new_chat_title' in obj: opts['new_chat_title'] = obj['new_chat_title'] + content_type = 'new_chat_title' if 'new_chat_photo' in obj: opts['new_chat_photo'] = Message.parse_photo(obj['new_chat_photo']) + content_type = 'new_chat_photo' if 'delete_chat_photo' in obj: opts['delete_chat_photo'] = obj['delete_chat_photo'] + content_type = 'delete_chat_photo' if 'group_chat_created' in obj: opts['group_chat_created'] = obj['group_chat_created'] content_type = 'group_chat_created' @@ -348,8 +351,10 @@ def de_json(cls, json_string): content_type = 'channel_chat_created' if 'migrate_to_chat_id' in obj: opts['migrate_to_chat_id'] = obj['migrate_to_chat_id'] + content_type = 'migrate_to_chat_id' if 'migrate_from_chat_id' in obj: opts['migrate_from_chat_id'] = obj['migrate_from_chat_id'] + content_type = 'migrate_from_chat_id' if 'pinned_message' in obj: opts['pinned_message'] = Message.de_json(obj['pinned_message']) content_type = 'pinned_message'