A Telegram robot based on Pyrogram
Simply clone the repository and run the main file:
git clone https://github.com/SpEcHiDe/PyroJsonDumpBot.git
cd PyroJsonDumpBot
python3 -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt
# <Create config.py appropriately>
python3 -m pyrobot
from pyrobot.sample_config import Config
class Config(Config):
TG_BOT_TOKEN = ""
APP_ID = 6
API_HASH = "eb06d4abfb49dc3eeb1aeb98ae0f581e"
-
TG_BOT_TOKEN
: Create a bot using @BotFather, and get the Telegram API token. -
APP_ID
-
API_HASH
: Get these two values from my.telegram.org/apps.- N.B.: if Telegram is blocked by your ISP, try our Telegram bot to get the IDs.
TMP_DOWNLOAD_DIRECTORY
- Dan Tรจs for his Pyrogram Library