fix
This commit is contained in:
parent
6fc5e9d249
commit
509eb027e5
@ -94,7 +94,7 @@ class RobotBotModuleConfig(TelegramBotModuleConfig):
|
||||
if media.type == 'video':
|
||||
max_bitrate = -1
|
||||
max_bitrate_link = None
|
||||
for variant in media.video_unfo['variants']:
|
||||
for variant in media.video_info['variants']:
|
||||
if variant['content_type'] == 'video/mp4' and variant['bitrate'] > max_bitrate:
|
||||
max_bitrate = variant['bitrate']
|
||||
max_bitrate_link = variant['url']
|
||||
|
Loading…
Reference in New Issue
Block a user