UdoChudo 755280d7de
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m15s
Сгенерил базовую модульную структуру спасибо Claude AI
2025-06-25 00:28:00 +05:00

29 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.

from aiogram import types
from aiogram.filters import Command
from bot.utils.logging import logger
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 = (
"Доступные команды:\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)