Skip to content

AlirezaChinian/SUMS-MD-1400-Telegram-Bot

Repository files navigation

SUMS MD 1400 Telegram Bot v 1.0

LICENSE Supported Python versions Bot API versions

Official Telegram Bot of SUMS MD 1400 with full admin panel in Bot and also with flask app and a Support Bot.

Requirements

How to run it?

  1. Install Requirements:
  $ pip3 install -r requirements.txt
  1. Run database.py to create database and tables and also insert test user information:
  $ python3 database.py
  1. Define Main Bot and Support Bot Token in config.py
  2. Define Bot admins(needs admins user_ids) in config.py
  3. Define Channel_id(needs for mandatory membership) in config.py
  4. Define Site Address in config.py
  5. Define Sec token and Secret key in config.py
  6. Deploy flaskapp on server with apache2 or nginx
  7. Run bot.py to start Main Bot:
  $ python3 bot.py
  1. Run talkbot.py to start Support Bot:
  $ python3 talkbot.py

Note: File IDs are unique for each Bot Token so sending file won't work and you will get error(Telegram rules! :) ).

Credits

SUMS MD 1400 Bot

SUMS MD 1400 Website

License

SUMS MD 1400 Telegram Bot is licensed under the GNU General Public License v3.0