Web-Screenshot-Bot
Web-Screenshot-Bot copied to clipboard
A simple telegram bot to take screenshot of a given website and upload it to telegram
Web-Screenshot-Bot
A Telegram Web-Screenshot Bot Based on Pyrogram
Introduction
Telegram Bot that creates screenshot [PNG/JPEG] or PDF of a given link. Can be matched with various other settings like resolution, partial or full-page rendering. The bot can currently be found in @BetterWebShotBot.
Available Resolutions are :
- 640x480
- 800x600
- 1280x720
- 2560x1440
Splitting of long pages are available for png and jpeg.
Installing
Note: the bot requires chromium/chrome binary to render websites.
The Legacy Way
Simply clone the repository and run the main file:
git clone https://github.com/alenpaul2001/Web-Screenshot-Bot.git
cd Web-Screenshot-Bot
python -m pip install poetry
poetry install --no-dev && poetry shell
# <Create config.env appropriately>
python3 __main__.py
an example config.env π
BOT_TOKEN=12345:49dc3eeb1aehda3cI2TesHNHc
API_ID=256123
API_HASH=eb06d4abfb49dc3eeb1aeb98ae0f581e
### CHROME EXEC PATH ? LEAVE THIS BLANK ###
GOOGLE_CHROME_SHIM=
### OPTIONAL ###
LOG_GROUP=-123990002
SUPPORT_GROUP_LINK=https://t.me/bytessupport
Thanks to
Dan Tès for his Pyrogram Library
Mattwmaster58 for the port of Pyppeteer Library
special thanks to :
<-W4RR10R-/> and @SpEcHIDe for helping me.
ΞΠΈΚβ«―πβ øμϩᴧβ and //πππ’ππππ// for suggesting new features.
Made with β€οΈοΈ in Kerala
Copyright & License
- Copyright (C) 2021 by AlenPaulVarghese
- Licensed under the terms of the GNU AGPL Version 3.0