A Telegram Web-Screenshot Bot Based on Pyrogram
Telegram Bot that creates screenshot [PNG/JPEG] or PDF of a given link. Can be matched with various other settings like resolution, partial or fullpage rendering and background rendering. The bot can be currently found in @BetterWebShotBot.
- 640x480
- 800x600
- 1280x720
- 2560x1440
Spliting of long pages is available for png and jpeg, upto 10 images is sent as mediagroup images above the count of 10 are zipped and send as document.
Simply clone the repository and run the main file:
git clone https://github.com/alenpaul2001/Web-Screenshot-Bot.git
cd Web-Screenshot-Bot
virtualenv -p /usr/bin/python3 venv
. ./venv/bin/activate
pip3 install -r requirements.txt
# <Create creds.py appropriately>
python3 main.py
import os
class my():
BOT_TOKEN = "12345:49dc3eeb1aehda3cI2TesHNHc"
API_ID = 256123
API_HASH = "eb06d4abfb49dc3eeb1aeb98ae0f581e"
Dan Tès for his Pyrogram Library
Mattwmaster58 for the port of Pyppeteer Library
<-W4RR10R-/> and @SpEcHIDe for helping me.
ΞΠΈΚβ«―πβ øμϩᴧβ and //πππ’ππππ// for suggesting new features.
- Copyright (C) 2020 by AlenPaulVarghese
- Licensed under the terms of the GNU GPL Version 3