clash-telegram-bot/keyboards/inline/keyboard.py

19 lines
555 B
Python
Raw Permalink Normal View History

2022-03-18 22:25:50 +03:00
from aiogram import types
from aiogram.types import InlineKeyboardButton, InlineKeyboardMarkup
def verify_button(user: types.User, bot_username: str) -> InlineKeyboardMarkup:
return InlineKeyboardMarkup(
inline_keyboard=[
[
InlineKeyboardButton(
"Подтвердить",
url="https://t.me/{bot}?start={user_id}".format(
bot=bot_username,
user_id=user.id
)
)
]
]
)