Link2Pdf Bot
A Telegram Bot to convert http Links to PDF
(Useful for converting online documents, telegraph links to pdf)
Mandatory Variables
API_HASH - Your API Hash from my.telegram.org
APP_ID - Your APP ID from my.telegram.org
BOT_TOKEN - Your bot token from @BotFather
Deploy
Deploy in VPS:- Open a Linux Terminal and Run the below commands ( Stage: 1 )
git clone https://github.com/m4mallu/link2PdfBot
cd link2PdfBot
- Create a
config.py
with the Mandatory variables (Refer sample_config.py) and save it in the bot directory. - Run the below commands in the same terminal ( Stage: 2 )
virtualenv -p python3 venv
. ./venv/bin/activate
pip3 install -r requirements.txt
python3 bot.py