mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
14 lines
358 B
Python
14 lines
358 B
Python
|
|
from typing import Any
|
||
|
|
|
||
|
|
from aiogram import Router
|
||
|
|
from aiogram.api.methods import SendMessage
|
||
|
|
from aiogram.dispatcher.handler.message import MessageHandler
|
||
|
|
|
||
|
|
router = Router()
|
||
|
|
|
||
|
|
|
||
|
|
@router.message_handler(commands=["test"])
|
||
|
|
class MyHandler(MessageHandler):
|
||
|
|
async def handle(self) -> Any:
|
||
|
|
return SendMessage(chat_id=self.chat.id, text="<b>PASS</b>")
|