Skip to content

Wandering-Cursor/ontu-schedule-bot

Repository files navigation

ONTU Schedule BOT

A Telegram bot for getting schedule for your group from ONTU website.

Installation

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.

  1. Install PDM (follow official instructions);
  2. Run pdm install to install dependencies;
  3. Run pdm run bot to start the bot.

Usage

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.

About

Telegram bot that fetches schedule from ONTU website

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors 2

  •  
  •