GitHub Readme.md
A Telegram Bot based on Pyrogram
Simply clone the repository and run the main file:
git clone https://github.com/SpEcHiDe/FFMpegBot.git
cd FFMpegBot
virtualenv -p /usr/bin/python3 venv
. ./venv/bin/activate
pip install -r requirements.txt
# <Create config.py with variables as given below>
python3 -m ffmpegbot
An example config.py
file could be:
Not All of the variables are mandatory
The Bot should work by setting only these variables
from ffmpegbot.sample_config import Config
class Development(Config):
APP_ID = 6
API_HASH = "eb06d4abfb49dc3eeb1aeb98ae0f581e"
TG_BOT_TOKEN = "123456789:eb98ae0f7-Gm_6d4abfb49dc_9dc3eBaEBa"
AUTH_USERS = [
7351948
]
pyrogram.errors.API_ID_PUBLISHED_FLOOD
APP_ID
: You can get this value from https://my.telegram.org
API_HASH
: You can get this value from https://my.telegram.org
TG_BOT_TOKEN
: You can create a bot using @BotFather
AUTH_USERS
: space sperated IDs of users who are allowed to use the botTG_UPDATE_WORKERS_COUNT
: Number of workers to use. 1
is the recommended amount see for yourself what works best!