Template
mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-08-29 08:27:43 +00:00
Update
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# - *- coding: utf- 8 - *-
|
||||
from aiogram import Router, Bot
|
||||
from aiogram.filters import Text, Command
|
||||
from aiogram.types import Message
|
||||
|
||||
from tgbot.keyboards.reply_main import menu_frep
|
||||
@@ -9,7 +10,8 @@ router = Router()
|
||||
|
||||
|
||||
# Открытие главного меню
|
||||
@router.message(text_startswith=["⬅ Главное меню", "/start"])
|
||||
@router.message(Text(text=['🔙 Главное меню']))
|
||||
@router.message(Command(commands=['start']))
|
||||
async def main_start(message: Message, bot: Bot, state: FSM, aSession: AS, my_user):
|
||||
await state.clear()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user