olgram/olgram/bot/bots.py
2021-06-11 21:56:03 +03:00

17 lines
490 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

from aiogram import Bot, Dispatcher, executor, types
from aiogram.dispatcher import FSMContext
from ..utils.router import Router
router = Router()
@router.message_handler(commands=["my_bots"])
async def my_bots(message: types.Message, state: FSMContext):
await message.answer("У тебя много ботов )")
@router.message_handler(commands=["add_bot"])
async def add_bot(message: types.Message, state: FSMContext):
await message.answer("Добавь тогда ок")