mirror of
https://github.com/Redume/Shirino.git
synced 2025-05-19 18:25:26 +01:00
28 lines
787 B
Python
28 lines
787 B
Python
from aiogram import types, Router
|
|
from aiogram.filters import CommandStart
|
|
|
|
from bot import bot
|
|
|
|
router = Router()
|
|
|
|
@router.message(CommandStart())
|
|
async def start(message: types.Message) -> None:
|
|
get_bot = await bot.get_me()
|
|
|
|
keyboard = types.InlineKeyboardMarkup(inline_keyboard=[
|
|
[
|
|
types.InlineKeyboardButton(
|
|
text="Source Code",
|
|
url="https://github.com/redume/shirino"
|
|
)
|
|
]
|
|
])
|
|
|
|
await message.reply(
|
|
'Shirino is a telegram bot for converting fiat or cryptocurrency. '
|
|
'The example of use occurs via inline query:\n'
|
|
f'`@{get_bot.username} USD RUB` \n'
|
|
f'`@{get_bot.username} 12 USD RUB` \n\n',
|
|
parse_mode='markdown',
|
|
reply_markup=keyboard
|
|
)
|