Agent skill

Add Telegram Update Field

by vendelieu in vendelieu/telegram-bot

Adds a new field to the Update type and wires it through ProcessedUpdate, UpdateType, ProcessUpdate, KSP (TypeConstants, TypeMapper), and FunctionalDSLUtils.

Apache-2.0Auto-check passedProductivity & Automation

Install Add Telegram Update Field

skills CLI
$ npx skills add vendelieu/telegram-bot --skill add-telegram-update-field -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install vendelieu/telegram-bot add-telegram-update-field --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/vendelieu/telegram-bot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/add-telegram-update-field .claude/skills/add-telegram-update-field && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-telegram-update-field
GitHub stars
249
Token cost
~841 tokens
SKILL.md length
204 words
Files
1
Skills in repo
14
Repo updated
First seen
Licence
Apache-2.0

At a glance

Adds a new field to the Update type and wires it through ProcessedUpdate, UpdateType, ProcessUpdate, KSP (TypeConstants, TypeMapper), and FunctionalDSLUtils.

  • Works in 6 steps: Add Field to Update → Add UpdateType Entry → Add ProcessedUpdate Subclass → …
  • Implementing support for a new Telegram update type (e.g
  • SKILL.md covers Workflow, Naming Conventions, Reference Examples and Validation
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Add Telegram Update Field is an agent skill from vendelieu/telegram-bot. Adds a new field to the Update type and wires it through ProcessedUpdate, UpdateType, ProcessUpdate, KSP (TypeConstants, TypeMapper), and FunctionalDSLUtils. Use when implementing support for a new Telegram update type (e.g. messagereaction, chatboost), adding a new update handler, or extending the bot to handle additional update kinds.

Its SKILL.md is about 840 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Productivity & Automation, covering Chatbots and conversational support and Android development. It works with Telegram and Kotlin. The repository describes itself as: Telegram Bot API wrapper with handy Kotlin DSL. The licence is Apache-2.0.

When your agent uses it

  • Implementing support for a new Telegram update type (e.g
  • Tasks that involve Chatbots and conversational support
  • Tasks that involve Android development

Example prompts

  • “/add-telegram-update-field”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Add Field to Update
  2. Add UpdateType Entry
  3. Add ProcessedUpdate Subclass
  4. Add processUpdate Clause
  5. Update KSP Module
  6. Regenerate FunctionalDSLUtils

What it can do on your machine

Read from SKILL.md and the folder at commit 1dbfd00. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Add Telegram Update Field loads about 841 tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 204 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~92
When it runs · the whole SKILL.md, loaded when a task matches
~841

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from vendelieu/telegram-bot at commit 1dbfd00, republished under its Apache-2.0 licence (© vendelieu). 204 words, ~841 tokens.

Download SKILL.mdSave it as .claude/skills/add-telegram-update-field/SKILL.md (or your agent's skills folder).
name
add-telegram-update-field
description
Adds a new field to the Update type and wires it through ProcessedUpdate, UpdateType, ProcessUpdate, KSP (TypeConstants, TypeMapper), and FunctionalDSLUtils. Use when implementing support for a new Telegram update type (e.g. message_reaction, chat_boost), adding a new update handler, or extending the bot to handle additional update kinds.

Add Telegram Update Field

Workflow

1. Add Field to Update
  • In Update.kt: add val myField: MyType? = null (camelCase, nullable)
  • Add import for the payload type if needed
2. Add UpdateType Entry
  • In UpdateType.kt: add enum entry with @SerialName("snake_case") matching Telegram API (e.g. MY_FIELD)
3. Add ProcessedUpdate Subclass
  • In ProcessedUpdate.kt: add data class MyFieldUpdate(...) : ProcessedUpdate(...)
  • Use @Serializable(MyFieldUpdate.Companion::class) and internal companion object : UpdateSerializer<MyFieldUpdate>()
  • Implement UserReference when the update has a user; ChatReference when it has a chat; TextReference when it has text
4. Add processUpdate Clause
  • In ProcessUpdate.kt: add myField != null -> MyFieldUpdate(updateId, this, myField)
  • Add import for the new ProcessedUpdate subclass
  • Place clause in a logical order (group with similar update types)
5. Update KSP Module
  • In TypeConstants.kt: add val myFieldUpdateClass: TypeName = MyFieldUpdate::class.asTypeName()
  • In TypeMapper.kt: add TypeConstants.myFieldUpdateClass to MyFieldUpdate::class to updateTypeMap
6. Regenerate FunctionalDSLUtils
  • Run ./gradlew prepareRelease (or full build)
  • api-sentinel KSP regenerates FunctionalDSLUtils.kt from UpdateType.entries; no manual edits needed

Handling: The new onXxx DSL function enables bot.setFunctionality { onXxx { ... } }. Both functional DSL and annotation approach (@UpdateHandler) use the same ActivityRegistry and ProcessingPipeline; see telegram-bot-handling.mdc.

Naming Conventions

  • Update field: camelCase (e.g. callbackQuery, messageReaction)
  • UpdateType: SCREAMING_SNAKE_CASE, @SerialName("snake_case") matching Telegram API
  • ProcessedUpdate subclass: XxxUpdate (e.g. CallbackQueryUpdate)

Reference Examples

Validation

bash
./gradlew formatKotlin
./gradlew prepareRelease

© vendelieu, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .cursor/skills/add-telegram-update-field of vendelieu/telegram-bot.

Open the folder on GitHubat commit 1dbfd00

Compare with similar skills

Add Telegram Update Field next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Add Telegram Update Field compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Add Telegram Update Field this skillvendelieu/telegram-bot249—~841Automated safety check: PassApache-2.0
Telegrambubbuild/bub1.7k—~2.2kAutomated safety check: PassApache-2.0
Pytdbotpytdbot/client137—~4.3kAutomated safety check: PassMIT
Setupterranc/claude-telegram-bot-bridge134—~1.5kAutomated safety check: NotesNone
MuseKevPH2026/muse-catch128—~1.6kAutomated safety check: NotesAGPL-3.0
Actionizeinfranodus/skills119—~3.8kAutomated safety check: NotesNone

Similar skills

  • Telegram

    bubbuild/bub

    Telegram Bot skill for sending and editing Telegram messages via Bot API.

    1.7k GitHub stars~2.2k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Pytdbot

    pytdbot/client

    Write Telegram bots and userbots with Pytdbot (async TDLib wrapper with high-level helpers; not the Telegram Bot API).

    137 GitHub stars~4.3k tokensUpdated 12 days ago
    Productivity & AutomationAuto-check passed
  • Setup

    terranc/claude-telegram-bot-bridge

    Install and configure the Telegram Skill Bot. An agent skill from terranc/claude-telegram-bot-bridge.

    134 GitHub stars~1.5k tokensUpdated 4 mo ago
    Productivity & AutomationAuto-check: notes
  • Muse

    KevPH2026/muse-catch

    Muse · Catch — AI 灵感捕手。浏览器插件 + 任意 Agent(Telegram/WhatsApp/Discord…)一键捕获灵感,AI自动提炼,Web Dashboard浏览。分级LLM路由:Agent内置LLM隐私分析 + TokenRouter云端分布式调用。当用户说「灵感」「捕获」「Muse」「Catch」「记下来」「收藏」「稍后读」时自动触发。

    128 GitHub stars~1.6k tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check: notes
  • Actionize

    infranodus/skills

    Turn insights, findings, or research into an actionable plan with deadlines and scheduled Telegram reminders.

    119 GitHub stars~3.8k tokensUpdated 19 days ago
    Productivity & AutomationAuto-check: notes
  • Muse

    KevPH2026/muse-catch

    Muse · Catch — AI灵感捕手。浏览器插件+Telegram Bot一键捕获,AI自动提炼,Dashboard浏览+DNA雷达+OPC Market。当用户说「灵感」「捕获」「Muse」「Catch」「记下来」「收藏」时触发。

    128 GitHub stars~865 tokensUpdated 1 mo ago
    Productivity & AutomationAuto-check passed

More from vendelieu/telegram-bot

All 14 skills in this repo
  • Add Ktnip Ksp Tests

    vendelieu/telegram-bot

    Adds tests for the ktnip KSP processor. An agent skill from vendelieu/telegram-bot.

    249 GitHub stars~726 tokensUpdated 5 days ago
    Auto-check passed
  • Add Ktnip Parameter Strategy

    vendelieu/telegram-bot

    Adds a new parameter resolution strategy to the ktnip KSP processor.

    249 GitHub stars~613 tokensUpdated 5 days ago
    Auto-check passed
  • Add Telegram API Action

    vendelieu/telegram-bot

    Adds a new Telegram Bot API method (action class and top-level functions).

    249 GitHub stars~974 tokensUpdated 5 days ago
    Auto-check passed
  • Add Telegram API Tests

    vendelieu/telegram-bot

    Writes tests for Telegram Bot API actions. An agent skill from vendelieu/telegram-bot.

    249 GitHub stars~609 tokensUpdated 5 days ago
    Auto-check: notes
  • Add Wizard Handler

    vendelieu/telegram-bot

    Configures @WizardHandler annotation for wizard flows. An agent skill from vendelieu/telegram-bot.

    249 GitHub stars~508 tokensUpdated 5 days ago
    Auto-check passed
  • Add Wizard Step

    vendelieu/telegram-bot

    Implements WizardStep for wizard flows. An agent skill from vendelieu/telegram-bot.

    249 GitHub stars~634 tokensUpdated 5 days ago
    Auto-check passed

Works with

Questions about Add Telegram Update Field

What does Add Telegram Update Field do?

Adds a new field to the Update type and wires it through ProcessedUpdate, UpdateType, ProcessUpdate, KSP (TypeConstants, TypeMapper), and FunctionalDSLUtils. Add Telegram Update Field is an agent skill from vendelieu/telegram-bot. Adds a new field to the Update type and wires it through ProcessedUpdate, UpdateType, ProcessUpdate, KSP (TypeConstants, TypeMapper), and FunctionalDSLUtils.

When should I use Add Telegram Update Field?

Add Telegram Update Field fits situations like: implementing support for a new Telegram update type (e.g; tasks that involve Chatbots and conversational support; tasks that involve Android development.

How do I install Add Telegram Update Field in Claude Code?

Run `npx skills add vendelieu/telegram-bot --skill add-telegram-update-field -a claude-code`. Or copy the skill folder (.cursor/skills/add-telegram-update-field in vendelieu/telegram-bot) into .claude/skills/add-telegram-update-field in your project. Claude Code loads it when a task matches its description.

How do I install Add Telegram Update Field in Codex?

Run `npx skills add vendelieu/telegram-bot --skill add-telegram-update-field -a codex`. Or copy the skill folder (.cursor/skills/add-telegram-update-field in vendelieu/telegram-bot) into .agents/skills/add-telegram-update-field in your project. Codex loads it when a task matches its description.

Can I use Add Telegram Update Field in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add vendelieu/telegram-bot --skill add-telegram-update-field -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-telegram-update-field, .gemini/skills/add-telegram-update-field, .github/skills/add-telegram-update-field and .opencode/skills/add-telegram-update-field in your project.

What does Add Telegram Update Field need to run?

SKILL.md names no scripts, command-line tools or credentials: Add Telegram Update Field is instructions for the agent only.

Does Add Telegram Update Field access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Add Telegram Update Field safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Add Telegram Update Field use?

Add Telegram Update Field is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Add Telegram Update Field use?

About 841 tokens (SKILL.md is roughly 3.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Add Telegram Update Field?

Skills that share tags, products or a category with Add Telegram Update Field: Telegram (bubbuild/bub, 1.7k stars), Pytdbot (pytdbot/client, 137 stars), Setup (terranc/claude-telegram-bot-bridge, 134 stars) and Muse (KevPH2026/muse-catch, 128 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Add Telegram Update Field?

vendelieu (a GitHub user) maintains it in vendelieu/telegram-bot, which has 249 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 4, 2026.

Source: vendelieu/telegram-bot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.