A Telegram bot for learning foreign words.
-
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.id
field in the response; -
Create
.env
file and add the Telegram channel ID, Telegram bot token, and OpenAI API key. -
Run
npm install
to install dependencies.
- Run
npm run start
to start the bot;
Send a message to the bot to trigger actions:
/start
- Start the bot; the next message will be scheduled./stop
- Stop the bot.