UdoChudo ebf1167fea
All checks were successful
Build and Push Docker Image / build (push) Successful in 33s
fix: /help command formating examples now correct
2025-08-31 22:53:23 +05:00

28 lines
1.0 KiB
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.

import html
from aiogram import types
async def cmd_start(message: types.Message):
"""Обработчик команды /start."""
await message.answer(
"Привет! Чтобы создать профиль, отправь команду:\n"
"<code>/create Telegram id or username</code>\n\n"
"Например:\n"
"<code>/create udochudo</code>",
reply_markup=None
)
async def cmd_help(message: types.Message):
"""Обработчик команды /help."""
help_text = (
f"Доступные команды:\n\n"
f"/start или /help - показать это сообщение\n" +
html.escape(f"/create <telegram_id> - создать профиль клиента\n") +
html.escape(f"/info <telegram_id> - получить информацию о клиенте\n\n") +
f"Примеры:\n"
f"<code>/create udochudo</code>\n"
f"<code>/info udochudo</code>"
)
await message.answer(help_text)