This project is a Telegram bot for learning Dutch vocabulary. It sends a daily message to a specified channel containing:
- A list of Dutch words with translations and example sentences
- An image generated by OpenAI's DALL-E model based on the example sentences
- A list of previous words to repeat
-
Create a Telegram Bot using @BotFather;
-
Create a Telegram Channel and add the bot as an admin. Then, get the channel ID by sending a message to the bot and checking the
chat.idfield in the response; -
Create
.envfile and add the Telegram channel ID, Telegram bot token, and OpenAI API key. -
Run
npm installto install dependencies.
- Run
npm run startto start the bot;
Send a message to the bot to trigger actions:
/start HH:MM- Generate a message and schedule sending./stop- Cancel the scheduled message./regenerate- Regenerate the scheduled message.