Skip to content

Commit ccdb999

Browse files
committed
add remaining chat actions
1 parent 41eb459 commit ccdb999

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

telegram/bot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,8 @@ def sendChatAction(self,
530530
is about to receive:
531531
- ChatAction.TYPING for text messages,
532532
- ChatAction.UPLOAD_PHOTO for photos,
533-
- ChatAction.UPLOAD_VIDEO or upload_video for videos,
534-
- ChatAction.UPLOAD_AUDIO or upload_audio for audio files,
533+
- ChatAction.UPLOAD_VIDEO for videos,
534+
- ChatAction.UPLOAD_AUDIO for audio files,
535535
- ChatAction.UPLOAD_DOCUMENT for general files,
536536
- ChatAction.FIND_LOCATION for location data.
537537
"""

telegram/chataction.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
class ChatAction(object):
2121
TYPING = 'typing'
2222
UPLOAD_PHOTO = 'upload_photo'
23-
RECORD_VIDEO = 'upload_video'
24-
RECORD_AUDIO = 'upload_audio'
23+
RECORD_VIDEO = 'record_video'
24+
UPLOAD_VIDEO = 'upload_video'
25+
RECORD_AUDIO = 'record_audio'
26+
UPLOAD_AUDIO = 'upload_audio'
2527
UPLOAD_DOCUMENT = 'upload_document'
2628
FIND_LOCATION = 'find_location'

0 commit comments

Comments
 (0)