A personal Telegram userbot for creating Quotly-style quote stickers.
- Creates quote stickers with
.q,.quoteor.quotly - Uses a dark Quotly-style bubble with transparent sticker background
- Uses the sender profile photo when available
- Tries to use the original author for forwarded messages
- Embeds static images and stickers inside the quote
- Uses one static video frame when
ffmpegis installed
.qquotes the replied message as a sticker.quotesame as.q.quotlysame as.q.q --pngsends the quote as PNG instead of sticker.q Nquotes N messages starting from the replied message; max 10.q custom textcreates a quote from custom text.phelpshows help.ppingchecks latency
Get your Telegram API credentials from https://my.telegram.org/apps.
Steps:
- Open https://my.telegram.org/apps
- Log in with your Telegram phone number
- Create an application
- Copy the
api_idandapi_hash
You can pass them with environment variables when starting the userbot:
TG_API_ID=123456 TG_API_HASH=your_api_hash python3 personal-userbot.pyOr edit them directly in personal-userbot.py.
Install system packages first. Package names vary by distro, but you need:
- Python 3
python3-venvor equivalentpip- FreeType/JPEG/zlib libraries for Pillow
ffmpegif you want video quotes
Clone and install:
git clone https://github.com/farmei/personal-userbot.git
cd quotly-userbot
python3 -m venv remoteenv
source remoteenv/bin/activate
pip install --upgrade pip setuptools wheel
pip install -r requirements.txtRun:
TG_API_ID=123456 TG_API_HASH=your_api_hash python3 personal-userbot.pyOn first run, Telegram will ask for login confirmation and create a local session file.
Install packages:
pkg update
pkg install python git freetype libjpeg-turbo zlib ffmpeg clang make pkg-configClone and install:
git clone https://github.com/farmei/personal-userbot.git
cd quotly-userbot
python -m venv remoteenv
source remoteenv/bin/activate
pip install --upgrade pip setuptools wheel
pip install -r requirements.txtIf Pillow fails to build or cannot load fonts, install Termux Pillow instead:
pip uninstall -y pillow
deactivate
pkg install python-pillow
python -m venv --system-site-packages remoteenv
source remoteenv/bin/activate
pip install telethonRun:
TG_API_ID=123456 TG_API_HASH=your_api_hash python personal-userbot.pyThis is a userbot: it runs on your Telegram account. Keep it personal and avoid spam or automated public abuse.
Generated quote files and Telegram session files are ignored by git.