This repository is a Template to use as a Telegram Bot built with Pyrogram. It features Pyrogram Asyncio and Smart Plugins; feel free to read through the linked documentation pages to learn more about those topics.
- Python 3.6 or higher.
- A Telegram API Key pair.
- A Telegram bot token.
-
git clone https://github.com/ColinTheShark/Pyrogram-Template
, to download the source-code. -
cd Pyrogram-Template
, to enter the directory. -
pip3 install -r requirements.txt
, to install the requirements. -
Create a new
pyrotemplate.ini
file, copy-paste the following and replace the values with your own:[pyrogram] api_id = 123456 api_hash = 0123456789abcdef0123456789abcdef [pyrotemplate] bot_token = 123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
-
Run with
python3 -m pyrotemplate
, stop with CTRL + C