made work with py < 3.10

This commit is contained in:
muskit
2022-09-29 07:44:21 +01:00
parent 82dbaabd6d
commit 2e02cfc02a
3 changed files with 37 additions and 19 deletions
+3 -1
View File
@@ -220,6 +220,8 @@ class TwAPI:
text = create_text()
try:
# print('creating reply img')
# media_ids = [await self.get_ttweet_image_media_id(ttweet)]
print('posting main tweet')
twt_resp = await self.post_tweet(text)
twt_id = twt_resp.data['id']
@@ -242,4 +244,4 @@ class TwAPI: