Skip to content

Телеграм-бот для отримання розкладу навчальної групи NURE та відправлення його в канал у певний час.

License

Notifications You must be signed in to change notification settings

WWFyb3NsYXYg/cistnurebot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CIST Telegram Bot

This is a Telegram bot that provides information about the schedule of a specific group in the Kharkiv National University of Radio Electronics (NURE). The bot uses the CIST API to retrieve the schedule information.

Getting Started

To use this bot, you need to follow these steps:

  1. Create a new bot using the BotFather and obtain the bot token.
  2. Enable inline mode for the bot by sending the /setinline command to the BotFather.
  3. Add the bot to your channel
  4. Clone this repository to your local machine.
  5. Install the required dependencies by running pip install -r requirements.txt.
  6. Run the gen_file.py script to generate the config.py file in the root directory of the project. Make sure to enter the Telegram bot token and NURE group name as prompted in the console. Do not modify the format of the input.
  7. Run the bot.py script to start the bot.

Usage

Once the bot is running, you can interact with it by sending commands in a Telegram chat. Here are the available commands:

  • Manual Update Command: Authorized users can manually update and send the current schedule to the designated channel using the /update command.
  • Scheduled Updates: Daily schedule updates are sent to a specified Telegram channel at 7:30 AM.
  • Date-Specific Schedule: Users can request the schedule for a specific date using the /schedule [DD.MM]. You can use it with a date argument in the DD.MM format. If the argument is missing, the current day is used.
  • In inline mode, you can use the bot's tag (@YourBotUsername) to select the schedule. For example, @YourBotUsername will show today's schedule, and @YourBotUsername 13.11 will show the schedule for November 13th.

Contributing

If you want to contribute to this project, feel free to submit a pull request or open an issue.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Телеграм-бот для отримання розкладу навчальної групи NURE та відправлення його в канал у певний час.

Topics

Resources

License

Stars

Watchers

Forks

Languages