Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
fix forward video message
Browse files Browse the repository at this point in the history
  • Loading branch information
youfou committed Mar 29, 2017
1 parent fe1fd61 commit 0be4c05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wxpy/api/messages/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def __init__(self, raw, bot):
self.bot = bot
self.type = self.raw.get('Type')

self.is_at = self.raw.get('isAt')
self.is_at = self.raw.get('IsAt') or self.raw.get('isAt')

self.file_name = self.raw.get('FileName')
self.file_size = self.raw.get('FileSize')
Expand Down Expand Up @@ -285,7 +285,6 @@ def download_and_send():
if self.type is PICTURE:
return wrapped_send('image', path)
elif self.type is VIDEO:
chat.send_video()
return wrapped_send('video', path)
else:
return wrapped_send('file', path)
Expand Down

0 comments on commit 0be4c05

Please sign in to comment.