Browse Source

Set supports_streaming to None if not mp4

master
blank X 2 months ago
parent
commit
d4f2f25ac4
Signed by: blankie GPG Key ID: CC15FC822C7F61F5
  1. 2
      redditbot.py

2
redditbot.py

@ -222,7 +222,7 @@ async def main():
except Exception:
logging.exception('Exception when getting video data')
else:
attributes.append(DocumentAttributeVideo(duration, w, h, supports_streaming=mimetype == 'video/mp4'))
attributes.append(DocumentAttributeVideo(duration, w, h, supports_streaming=mimetype == 'video/mp4' or None))
await client.send_message(chat, j, file=k, link_preview=False, attributes=attributes)
async def _get_video_data(filename):

Loading…
Cancel
Save