https://github.com/maktoobgar/telegram_bot_template
A Telegram bot template with Django ORM and Pyrogram as main API message handler.
https://github.com/maktoobgar/telegram_bot_template
automation bot telegram-bot
Last synced: 2 months ago
JSON representation
A Telegram bot template with Django ORM and Pyrogram as main API message handler.
- Host: GitHub
- URL: https://github.com/maktoobgar/telegram_bot_template
- Owner: maktoobgar
- License: mit
- Created: 2021-02-10T07:50:01.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-02-23T15:32:37.000Z (over 4 years ago)
- Last Synced: 2025-01-25T15:38:31.081Z (over 1 year ago)
- Topics: automation, bot, telegram-bot
- Language: Python
- Homepage:
- Size: 227 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Getting Started
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
```