A Telegram bot for getting schedule for your group from ONTU website.
For local deployment you can use Devcontainers in VSCode. Just open the project in VSCode and choose option "Reopen in Devcontainer".
For "production" deployment (bare metal), you need to use PDM to install dependencies.
- Install PDM (follow official instructions);
- Run
pdm install
to install dependencies; - Run
pdm run bot
to start the bot.
When you first start a bot it'll check environment (either a .env
file or your env variables) for:
- API_TOKEN - A token from BotFather;
- API_URL - URL to an instance of ONTU Schedule Bot Admin;
- DEBUG_CHAT_ID - A chat ID for debugging purposes (can be personal chat with a bot, or a group ID).
See example.env if you want to use a .env
file.
After that the bot will start polling updates.