agentsclimarketplace

Telegram keyboards callbacks

Skill ballisarium/aiogram-bot-skills/skills/telegram-keyboards-callbacks

focused workflows for building and maintaining aiogram bots

Install
npx -y skills add ballisarium/aiogram-bot-skills --skill telegram-keyboards-callbacks

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 25 days oldThe repository was created 25 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

use when building or changing telegram keyboards, menus, callback data, callback handlers, pagination, or edit-versus-send behavior; кнопки, меню, callbacks.

SKILL.md

2.4 KB, as published. Nobody here has run it

telegram keyboards and callbacks

keep callback payloads compact, stable, and backed by safe server-side checks.

workflow

use aiogram-handler-implementation when callback handlers or routing change. use aiogram-bot-verify after code changes.

  1. inspect existing keyboard builders, InlineKeyboardBuilder, CallbackData factories, constants, action names, domain modules, text helpers, and pagination utilities.
  2. choose the keyboard type deliberately:
    • inline for message actions, menus, pagination, confirmation, and entity selection
    • reply for persistent input choices or contact and location requests; remove it when no longer relevant
  3. preserve the project callback format. prefer factories, then constants or enums; pass only compact action data and necessary identifiers.
  4. treat callback_data as routing data, not storage. keep large context server-side. if exact current limits affect the design, use telegram-docs-check.
  5. match handlers to the exact factory or constant. reject unrelated actions, check permissions and entity existence, handle stale callbacks safely, and answer the callback query where appropriate. make mutating actions safe against repeated callbacks and retries.
  6. edit the existing bot message for menu navigation, paging, selection, and confirmation updates. send a new message when history matters, edit constraints apply, or a separate flow begins. follow existing handling for inaccessible or unchanged messages.
  7. bound page indexes and handle empty pages, missing items, preserved filters, and project-standard back or close controls.
  8. keep markup construction in keyboard builders and user-facing text in the text or localization layer.
  9. test packing and unpacking, filters, routing, stale and invalid payloads, pagination boundaries, permissions, repeated mutating callbacks, and callback-answer behavior. completion requires stable payloads, exact routing, safe stale-data behavior, complete navigation, and boundary coverage.

guardrails

do not store json or large context in callbacks, concatenate payload strings inside handlers when a structured convention exists, duplicate markup, or edit messages blindly.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.