UdoChudo 8d66c7c214
All checks were successful
Build and Push Docker Image / build (push) Successful in 1m19s
fix: /help command escape symbols now will work...i gues...
2025-08-31 22:44:30 +05:00

30 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 = html.escape(
(
"Доступные команды:\n\n"
"/start или /help - показать это сообщение\n"
"/create <telegram_id> - создать профиль клиента\n"
"/info <telegram_id> - получить информацию о клиенте\n\n"
"Примеры:\n"
"<code>/create udochudo</code>\n"
"<code>/info udochudo</code>"
)
)
await message.answer(help_text)