fix twitter robot

master
bakatrouble 3 years ago
parent c8e0af9bd9
commit a844ab23d9

@ -91,7 +91,7 @@ class RobotBotModuleConfig(TelegramBotModuleConfig):
tweet = api.GetStatus(twitter_matches.group(1))
try:
for media in tweet.media:
if media['type'] == 'video':
if media.type == 'video':
max_bitrate = -1
max_bitrate_link = None
for variant in media.video_unfo['variants']:

Loading…
Cancel
Save