Skip to content

Commit 3f5596d

Browse files
committed
new_chat_members content type and new send_action actions
1 parent 443d81d commit 3f5596d

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎telebot/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ def send_chat_action(self, chat_id, action):
576576
its typing status).
577577
:param chat_id:
578578
:param action: One of the following strings: 'typing', 'upload_photo', 'record_video', 'upload_video',
579-
'record_audio', 'upload_audio', 'upload_document', 'find_location'.
579+
'record_audio', 'upload_audio', 'upload_document', 'find_location', 'record_video_note', 'upload_video_note'.
580580
:return: API reply. :type: boolean
581581
"""
582582
return apihelper.send_chat_action(self.token, chat_id, action)

‎telebot/types.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ def de_json(cls, json_string):
283283
if 'new_chat_member' in obj:
284284
opts['new_chat_member'] = User.de_json(obj['new_chat_member'])
285285
content_type = 'new_chat_member'
286+
if 'new_chat_members' in obj:
287+
opts['new_chat_members'] = obj['new_chat_members']
288+
content_type = 'new_chat_members'
286289
if 'left_chat_member' in obj:
287290
opts['left_chat_member'] = User.de_json(obj['left_chat_member'])
288291
content_type = 'left_chat_member'

0 commit comments

Comments
 (0)