From 65b2b6d8e58b3bc7b946c72e11b93f22eb7a10d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Forr=C3=B3?= Date: Fri, 11 Sep 2020 14:27:13 +0200 Subject: [PATCH] Get original JSON data from tweepy --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 48ac725..5bffe7c 100644 --- a/bot.py +++ b/bot.py @@ -140,13 +140,13 @@ class Bot(discord.Client): else: reply_to = tweet.get('in_reply_to_status_id_str') if reply_to: - original = api.get_status(reply_to) + original = api.get_status(reply_to)._json if original: await channel.send(embed=self.make_twitter_embed(original)) elif tweet.get('user', {}).get('verified'): reply_to = tweet.get('in_reply_to_status_id_str') if reply_to: - original = api.get_status(reply_to) + original = api.get_status(reply_to)._json if original: await channel.send(embed=self.make_twitter_embed(original)) else: