Template
mirror of
https://github.com/djimboy/djimbo_template_aio3.git
synced 2026-08-27 23:47:44 +00:00
Update
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# - *- coding: utf- 8 - *-
|
||||
from aiogram import Router, Bot
|
||||
from aiogram.types import Message
|
||||
|
||||
from tgbot.keyboards.reply_main import menu_frep
|
||||
from tgbot.utils.misc.bot_models import FSM, RS
|
||||
|
||||
router = Router()
|
||||
|
||||
|
||||
# Открытие главного меню
|
||||
@router.message(text_startswith=["⬅ Главное меню", "/start"])
|
||||
async def main_start(message: Message, bot: Bot, state: FSM, rSession: RS, my_user):
|
||||
await state.clear()
|
||||
|
||||
await message.answer("🔸 Бот готов к использованию.\n"
|
||||
"🔸 Если не появились вспомогательные кнопки\n"
|
||||
"▶ Введите /start",
|
||||
reply_markup=menu_frep(message.from_user.id))
|
||||
Reference in New Issue
Block a user