Skip to content

A Telegram bot template with Django ORM and Pyrogram as main API message handler.

License

Notifications You must be signed in to change notification settings

maktoobgar/telegram_bot_template

Repository files navigation

Getting Started

Python Django Pyrogram MIT LICENSE

Just move step by step and everything should work so good.

Installation

Before using the bot, you need to install some dependencies that the project works with them but don't worry, there is an automation shell script for that.
Dependencies:

  1. Python3
  2. Python3-pip (pip3)
    • django
    • djangoRestFramework
    • pyrogram
    • mysqlclient
    • wheel
    • tgcrypto
    • json (built-in)
  3. Python3-venv (Python Virtual Environment)
  4. Postgres Server

Linux

Open up your terminal, Go to the main project directory and just run:

source ./commands/deploy

And answer the asked configurations on the way of installation. Note: This is kinda deprecated but still works.

Configuration

During running the installation automation, the automation will ask you some questions and you just give him the right answer.
That's it.
Configurations will generate automat and There are no other configurations to do.

Usage

Now that all of the top Dependencies should be installed on your system already configurations should be done, if you finished all top installation process successfully, you are ready to run the bot with:

python3 main.py

About

A Telegram bot template with Django ORM and Pyrogram as main API message handler.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks