This Telegram bot provides users with access to class notes based on the button clicked. Users must join a specific channel to access the notes.
- Displays class notes based on button clicks
- Requires users to join a specific channel to access notes
- Allows the owner to import files directly to the database using special commands
- Clone the repository:
git clone https://github.com/your-username/your-repo.git cd your-repo
Here's an example of a README.md
file for your Telegram bot project, including instructions for deployment on Heroku and an embedded Heroku Deploy button:
# Telegram Bot with Random Buttons for Class Notes
This Telegram bot provides users with access to class notes based on the button clicked. Users must join a specific channel to access the notes.
## Features
- Displays class notes based on button clicks
- Requires users to join a specific channel to access notes
- Allows the owner to import files directly to the database using special commands
## Setup
1. Clone the repository:
```bash
git clone https://github.com/your-username/your-repo.git
cd your-repo
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
- Create a
.env
file with the following variables:BOT_TOKEN=your_bot_token MONGODB_URI=your_mongodb_uri
- Replace
your_bot_token
with your Telegram bot token andyour_mongodb_uri
with your MongoDB URI.
- Create a
-
Run the bot:
python bot.py
You can deploy this bot to Heroku with the following steps:
- Click the button below to deploy the bot to Heroku:
-
Set the following environment variables in your Heroku app settings:
BOT_TOKEN
: Your Telegram bot tokenMONGODB_URI
: Your MongoDB URI
-
Scale up the dynos to at least one to start your bot.
For support or questions, please join our Telegram support group: @BWANDARLOK.