360 Secure SkillHub
360 安全技能中心

aiogram-framework

面向 aiogram v3 的开发参考,指导选择轮询或 webhook、组织 Dispatcher 与 Router、编写处理器和过滤器、接入中间件与依赖注入、实现 FSM 和错误处理,并查阅键盘、格式化与 i18n 等工具。

分类:开发
narumiruna
热度 0.00
最近更新 2026-10-28 05:09:30

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add narumiruna/telegram-bot/aiogram-framework
兼容性
通用兼容
联网要求
不联网
数据出网
数据不出本机
Metadata
name
aiogram-framework
description
Build, refactor, or troubleshoot Telegram bots using aiogram v3. Use when working with aiogram routers/handlers/filters, Dispatcher lifecycle, update delivery (long polling or webhook), FSM, middleware/DI, error handling, or aiogram utilities like keyboards, formatting, and i18n.

Aiogram Framework

Overview

Use this skill to design or modify aiogram-based bots in this repository with v3 patterns and the local docs/examples.

Workflow

  1. Choose update delivery (polling vs webhook) and note any scaling or multi-bot needs. See references/updates.md.
  2. Define dispatcher/router layout and handler registration. See references/quickstart.md and references/handlers-filters.md.
  3. Add filters and context injection (including custom filters) as needed. See references/handlers-filters.md and references/middleware-di-errors.md.
  4. Add middleware and error handling for cross-cutting concerns. See references/middleware-di-errors.md.
  5. Add FSM if the flow is multi-step or needs user state. See references/fsm.md.
  6. Use utilities (keyboards, formatting, i18n) where they reduce boilerplate. See references/utils.md.
  7. Cross-check with local examples under examples/ before finalizing.

Reference Map

  • Quickstart and project shape: references/quickstart.md
  • Update delivery details: references/updates.md
  • Routers/handlers/filters: references/handlers-filters.md
  • Middlewares, DI, errors: references/middleware-di-errors.md
  • FSM and storage: references/fsm.md
  • Utilities (keyboard/formatting/i18n): references/utils.md