← ClaudeAtlas

tg-sticker-packlisted

Use when making static Telegram stickers or a sticker pack from a meme frame, photo or video: cut the person out, put a caption on top (WordArt, Impact, label tags), check the 512 px PNG/WEBP format offline, and publish the set from a user account through @Stickers or from a bot through createNewStickerSet / addStickerToSet.
serejaris/telegram-skills · ★ 41 · AI & Automation · score 87
Install: claude install-skill serejaris/telegram-skills
# tg-sticker-pack Checked against the official docs on 2026-11-11: [Stickers](https://core.telegram.org/stickers) and Bot API 10.4 (`uploadStickerFile`, `createNewStickerSet`, `addStickerToSet`, `InputSticker`). The @Stickers dialog was run end to end the same day from a user account with Telethon 1.45. ## Format | What | Rule | |---|---| | File | `.PNG` or `.WEBP` | | Size | one side exactly 512 px, the other 512 px or less | | Background | transparent; Telegram's tip is a white stroke and a black shadow | | Bytes | keep under 512 KB: the long-standing static limit (the current Stickers page states no byte limit) | | Set | up to 120 stickers; `createNewStickerSet` takes 1–50 initial ones | | Emoji | 1–20 per sticker (`emoji_list`) | `scripts/check_sticker.py files a.webp b.png` checks size, format, alpha and bytes offline (stdlib only); `scripts/check_sticker.py name <short_name> [--bot <bot_username>]` checks a set name. Exit code 1 means an error. ## Make Scripts need Pillow, `cut.py` also rembg: `uv run --with pillow --with 'rembg[cpu]' python scripts/cut.py …`. 1. **Frame.** Download the video into an empty folder, pick the frame from a contact sheet: `ffmpeg -i v.webm -vf "fps=1,scale=320:-1,tile=7x10" -frames:v 1 contact.jpg` (the frame at second `7·row + column`), then `ffmpeg -ss <t> -i v.webm -frames:v 1 frame.png`. 2. **Cutout.** `cut.py frame.png cut.webp --box x0,y0,x1,y1`. The default `birefnet-portrait` model keeps dark clothes and a hand-held microphone