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.
To use this bot, you need to follow these steps:
- Create a new bot using the BotFather and obtain the bot token.
- Enable inline mode for the bot by sending the
/setinline
command to the BotFather. - Add the bot to your channel
- Clone this repository to your local machine.
- Install the required dependencies by running
pip install -r requirements.txt
. - Run the
gen_file.py
script to generate theconfig.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. - Run the
bot.py
script to start the bot.
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.
If you want to contribute to this project, feel free to submit a pull request or open an issue.
This project is licensed under the MIT License - see the LICENSE file for details.