22 lines
690 B
Python
22 lines
690 B
Python
from __future__ import annotations
|
|
|
|
from aiogram.types import KeyboardButton, KeyboardButtonRequestChat, ReplyKeyboardMarkup
|
|
|
|
|
|
def forum_group_request_keyboard() -> ReplyKeyboardMarkup:
|
|
return ReplyKeyboardMarkup(
|
|
keyboard=[[
|
|
KeyboardButton(
|
|
text="Выбрать forum-группу",
|
|
request_chat=KeyboardButtonRequestChat(
|
|
request_id=1,
|
|
chat_is_channel=False,
|
|
chat_is_forum=True,
|
|
bot_is_member=True,
|
|
request_title=True,
|
|
),
|
|
)
|
|
]],
|
|
resize_keyboard=True,
|
|
one_time_keyboard=True,
|
|
)
|