/telegram-skills:tg-sticker-packfrom telegram-skills
Creates static Telegram sticker packs from meme frames, photos, or videos. Handles cutout, caption styling (WordArt, Impact, tags), 512px PNG/WEBP format checks, and publishing via @Stickers or Bot API.
Ships in telegram-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Checked against the official docs on 2026-11-11: 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.
| 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.
Scripts need Pillow, cut.py also rembg: uv run --with pillow --with 'rembg[cpu]' python scripts/cut.py ….
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.cut.py frame.png cut.webp --box x0,y0,x1,y1. The default birefnet-portrait model keeps dark clothes and a hand-held microphone; isnet-general-use and u2net_human_seg dropped a black top on the same frame. Check the -green.jpg preview it writes.sticker.py make --cut cut.webp --top "it depends on" --word REASONING --style wordart-chrome --out out --name reasoning. Styles: wordart-chrome (gradient chrome, wave, perspective, 3D extrusion), wordart-rainbow (rainbow, arch), pink, impact (white with black stroke), tags (white and yellow label tags). The caption sits above the head; --outline N adds a white stroke of N px around the figure. --font takes any heavy font that covers your alphabet.<name>-dark.png: the sticker on a dark chat background. Caption readable, letters clear of each other, face uncovered. Compare variants with sticker.py sheet a.png b.png --out sheet.png.The owner is the account that talks to @Stickers; the short name needs no bot suffix. Read the bot's reply after every message and follow its text.
| New set | Add to a set |
|---|---|
/newpack → title | /addsticker → choose the set |
| sticker file → emoji | sticker file → emoji |
| next file → emoji … | /done |
/publish → /skip (icon) → short name |
Send the sticker as a file. With Telethon, a .webp path goes out as a document, which is what the bot asks for; a .png path goes out as a compressed photo unless you pass force_document=True. The reply with t.me/addstickers/<short_name> means the set is live.
The set belongs to a user (user_id), the bot can edit it later.
POST /bot<TOKEN>/createNewStickerSet
{
"user_id": 123456789,
"name": "memes_by_mybot",
"title": "memes",
"stickers": [
{"sticker": "attach://s1", "format": "static", "emoji_list": ["🤔"]}
]
}
name: English letters, digits and underscores, starts with a letter, no __, ends in _by_<bot_username> (case-insensitive), 1–64 characters. title: 1–64 characters.attach://s1), a URL, or a file_id from uploadStickerFile(user_id, sticker, sticker_format="static").addStickerToSet(user_id, name, sticker); the same sticker twice leaves the set unchanged.The set link https://t.me/addstickers/<short_name> returns a page whose og:title names the set, and every file passed check_sticker.py files.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/tg-bot-opsUse when running a Telegram bot in production: webhook or long polling, allowed_updates, webhook secret token, bot settings from code (setMySettings, getMe, privacy mode, callback_query_mode), botinvite links, 429 and retry_after, file retries, broadcast limits and paid broadcasts, lost updates on shutdown, a poison update after new Bot API types, t.me outage and fallback domains, local Bot API server./tg-capability-mapUse before promising a Telegram feature or designing around one: what a bot can do in Bot API, what lives only in the client or MTProto (scheduled posts, channel stats, poll stats, channel stories, folders, boosts, welcome messages, communities), and what never to promise from a bot./tg-classic-messagesUse when sending or editing ordinary Telegram bot messages: sendMessage text, MarkdownV2/HTML escaping and entities, quotes, date_time, custom emoji, link previews, photos and documents with captions, albums, upload size limits, protect_content, copy, forward, delete. Also use to choose between a classic message and a rich message./tg-markdown-to-richUse when converting an existing Markdown file or stdin into a Telegram Rich Message (InputRichMessage.markdown) for sendRichMessage, including file_id, URL, and multipart upload media bindings. Triggers: "send markdown to Telegram", "convert doc to rich message", "telegram rich message from file"./tg-miniapp-launch-authUse when choosing how a Telegram Mini App opens (keyboard, inline or menu button, main app, direct link, startapp, join request) or when a server must trust a Mini App user: validating initData by HMAC or Ed25519, signature in the check string, auth_date, isVersionAtLeast gating, origin protection, test launch links in the test environment./tg-miniapp-uiUse when building or debugging the interface of a Telegram Mini App: theme colors and dark mode, safe areas and notches, fullscreen, keyboard and viewport height, MainButton and SecondaryButton, BackButton, haptic feedback, performance on weak Android, or a layout bug that shows up only on a real iPhone, Android or Desktop client.npx claudepluginhub serejaris/telegram-skills --plugin telegram-skillsOther plugins' skills for the same job