clash-telegram-bot/keyboards/inline/keyboard.py
2022-03-18 21:25:50 +02:00

19 lines
555 B
Python

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
)
)
]
]
)