Duolingo/Telegram bot
To use this bot on your own, you'll need:
- A Telegram bot (and know its token)
- This is provided by the BotFather when you're creating your bot
- A Telegram group chat set up (and know the chat id)
- You can easily get this using this Stackoverflow answer
- A Duolingo account (need to be logged in to access the API)
Create a file called .env
in the folder with the main.py
script. Add the following, substituting your correct values:
DUO_USER="myDuolingoUsername"
DUO_PASS="myDuolingoPassword"
DUO_TOKEN="botTokenFromTelegram"
DUO_CHAT_ID="chatIdFromTelegram"
Then run python main.py