Skip to content

Commit b2f376a

Browse files
committed
Remove debug message. Add content_type
1 parent d0b4bb7 commit b2f376a

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def readme():
77
return f.read()
88

99
setup(name='pyTelegramBotAPI',
10-
version='3.5.0',
10+
version='3.5.1',
1111
description='Python Telegram bot api. ',
1212
long_description=readme(),
1313
author='eternnoir',

telebot/apihelper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ def send_photo(token, chat_id, photo, caption=None, reply_to_message_id=None, re
258258
def send_media_group(token, chat_id, media, disable_notification=None, reply_to_message_id=None):
259259
method_url = r'sendMediaGroup'
260260
media_json = _convert_list_json_serializable(media)
261-
print(media_json)
262261
payload = {'chat_id': chat_id, 'media': media_json}
263262
if disable_notification:
264263
payload['disable_notification'] = disable_notification

telebot/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,13 @@ def de_json(cls, json_string):
333333
content_type = 'left_chat_member'
334334
if 'new_chat_title' in obj:
335335
opts['new_chat_title'] = obj['new_chat_title']
336+
content_type = 'new_chat_title'
336337
if 'new_chat_photo' in obj:
337338
opts['new_chat_photo'] = Message.parse_photo(obj['new_chat_photo'])
339+
content_type = 'new_chat_photo'
338340
if 'delete_chat_photo' in obj:
339341
opts['delete_chat_photo'] = obj['delete_chat_photo']
342+
content_type = 'delete_chat_photo'
340343
if 'group_chat_created' in obj:
341344
opts['group_chat_created'] = obj['group_chat_created']
342345
content_type = 'group_chat_created'
@@ -348,8 +351,10 @@ def de_json(cls, json_string):
348351
content_type = 'channel_chat_created'
349352
if 'migrate_to_chat_id' in obj:
350353
opts['migrate_to_chat_id'] = obj['migrate_to_chat_id']
354+
content_type = 'migrate_to_chat_id'
351355
if 'migrate_from_chat_id' in obj:
352356
opts['migrate_from_chat_id'] = obj['migrate_from_chat_id']
357+
content_type = 'migrate_from_chat_id'
353358
if 'pinned_message' in obj:
354359
opts['pinned_message'] = Message.de_json(obj['pinned_message'])
355360
content_type = 'pinned_message'

0 commit comments

Comments
 (0)