skrimix / twitter_downloader_bot

Telegram bot for downloading media from Twitter
GNU General Public License v3.0
41 stars 17 forks source link

clone error #6

Closed mightycoin97 closed 4 months ago

mightycoin97 commented 8 months ago

when i clone the repo and run "python main.py" follwing error is shown: File "main.py", line 28 def extract_tweet_ids(update: Update): ^ SyntaxError: invalid syntax

and when i run "python3 main.py" follwing error is shown: Traceback (most recent call last): File "main.py", line 48, in def scrape_media(tweet_id: int) -> list[dict]: TypeError: 'type' object is not subscriptable

skrimix commented 7 months ago

First error: Don't use Python 2, it's long deprecated.

Second error: You need to have at least Python 3.9. Maybe even 3.10, I think there are parts that require it.