GithubHelp home page GithubHelp logo

local's Introduction

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:
    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
  1. Install dependencies:

    pip install -r requirements.txt
  2. 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 and your_mongodb_uri with your MongoDB URI.
  3. Run the bot:

    python bot.py

Deploy to Heroku

You can deploy this bot to Heroku with the following steps:

  1. Click the button below to deploy the bot to Heroku:

ʜᴇʀᴏᴋᴜ

  1. Set the following environment variables in your Heroku app settings:

    • BOT_TOKEN: Your Telegram bot token
    • MONGODB_URI: Your MongoDB URI
  2. Scale up the dynos to at least one to start your bot.

Support

For support or questions, please join our Telegram support group: @BWANDARLOK.

local's People

Contributors

pradhan474 avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.