-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhandlers.py
More file actions
26 lines (18 loc) · 760 Bytes
/
Copy pathhandlers.py
File metadata and controls
26 lines (18 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from aiogram.dispatcher.filters import CommandStart, CommandHelp
from aiogram.types import Message
from loader import dp
@dp.message_handler(CommandStart())
async def send_welcome(msg: Message):
hello = f"Assalomu alaykum va rohmatullohi va barokatuh!"
question = "Sizga qanday yordam bera olishimiz mumkin? \n" \
"Savolingiz bo‘lsa, marhamat yozing, sizga tez orada javob beramiz."
await msg.answer(hello)
await msg.answer(question)
@dp.message_handler(CommandHelp())
async def help_message(msg: Message):
text = "Savolingizni yozing va biz sizga imkon qadar tez orada javob beramiz."
await msg.answer(text)
# admin handler
from admin_handler import * # noqa
# user handler
from user_handler import * # noqa