From 509eb027e5864a7fe0e56c83b167f1bf01116009 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Sat, 24 Apr 2021 00:31:45 +0300 Subject: [PATCH] fix --- bots/modules/robot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/modules/robot.py b/bots/modules/robot.py index ddc7d25..c3f073d 100644 --- a/bots/modules/robot.py +++ b/bots/modules/robot.py @@ -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']