26 lines
631 B
Python
26 lines
631 B
Python
from aiogram import Router, types
|
|
from aiogram.filters import CommandStart
|
|
|
|
router = Router()
|
|
|
|
WELCOME_MESSAGE = """
|
|
<b>Welcome to AI Chat!</b>
|
|
|
|
Get started:
|
|
1. /apikey YOUR_KEY — Set your Gemini API key
|
|
2. /new — Create a new chat and get your Watch URL
|
|
|
|
Commands:
|
|
• /clear — Clear chat history
|
|
• /prompt — Set custom system prompt
|
|
• /model — Change AI model
|
|
• /presets — Show available presets
|
|
|
|
Get your API key at https://aistudio.google.com/apikey
|
|
""".strip()
|
|
|
|
|
|
@router.message(CommandStart())
|
|
async def on_start(message: types.Message) -> None:
|
|
await message.answer(WELCOME_MESSAGE, parse_mode="HTML")
|