agent-installable skills for puregram v3 — a thin, type-safe wrapper around the telegram bot api.
these skills are designed for skills.sh and any agent-skill runtime that follows the same shape (claude code, codex, etc.).
- using-puregram —
Telegram.fromToken, three-layer api (tg.api.X/tg.send/update.send),.extend(plugin), request hooks, dispatch middleware,MediaSource, keyboards, parse-mode, filters, errors, polling vs webhook,retryOnFloodWait. start here.
- puregram-flow —
waitFor/prompt/collectMediaGroup/waitForAny, plus persistent flows that survive bot restarts - puregram-scenes — multi-step wizards via
StepScene,enterHandler/leaveHandler/beforeStep/afterStep,passthroughescape hatches - puregram-session — per-user / per-chat / per-thread state, proxied auto-flush,
ttl, declaration-mergedSessionData - puregram-storage — the
KVStorage<V>/TtlStorage<V>contract that session / scenes / media-cacher / rate-limit all share, plusenhanceStoragemigrations - puregram-callback-data — typed
callback_datapayloads viadefineCallbackData,.button,.filter,.with - puregram-testing — actor-driven in-process test framework, vitest / mocha / node:test agnostic
- puregram-markup — tagged-template entity-aware formatter; composes message entities directly, no
parse_modeheader needed - puregram-media-cacher — transparent
file_idcaching plugin; first send uploads, every later send reuses the cached id - puregram-rate-limit — inbound per-user fixed-window rate limiting; filter / middleware / imperative call shapes
- puregram-file-id — TL parser for telegram
file_idandfile_unique_idstrings; zero puregram deps - puregram-utils — standalone helpers: slot-machine decoder, web app
initDatavalidation,parseCommand, typedt.medeep-link builders - puregram-inline-message-id — TL parser for telegram's
inline_message_idblob; legacy + modern wire shapes - puregram-stream — stream LLM output to telegram via animated
sendMessageDraftpreviews; adapters for openai / anthropic / vercel ai / ollama / langchain - puregram-throttler — outbound rate-limit middleware; sliding-window buckets keep your bot under telegram's ~30 rps / per-chat / per-group soft limits
- recipes — 15 short canonical bot recipes referenced from the main skill
using-puregram ships executable lookup tools under using-puregram/tools/ — they resolve the user's installed node_modules/@puregram/api and node_modules/puregram at runtime, so they work in any project that has puregram installed:
node using-puregram/tools/get-method.mjs sendMessage # bot-api method → params/return/version
node using-puregram/tools/get-object.mjs Message # bot-api object/structure → fields
node using-puregram/tools/get-update.mjs message # wrapped update class → helpers
node using-puregram/tools/get-shortcut.mjs send # tg.send-family shortcut signatures
node using-puregram/tools/grep-source.mjs MessageShared # scoped grep across installed puregram packages
each tool supports --help and most support --list.
these skills track puregram@3 and must stay in sync with package source — when a public api in any @puregram/* package changes, the matching skill is updated in the same release. drift in either direction is a bug.
MPL-2.0 — same as puregram itself.