How to add inline button that opens dialogue to select

managed groups and add the bot as admin right away?

4 ответов

17 просмотров

If you use t.me/{bot}?startgroup= even if you set all ?admin permission in the link, the user will still have to confirm them in the dedicated page.

Ighor-July Автор вопроса
Mr Robot
If you use t.me/{bot}?startgroup= even if you set ...

this looks like exactly what I need, how to filter groups to show only managed ones?

Ighor July
this looks like exactly what I need, how to filter...

You can’t filter the groups that appears when tapping on the link. You might consider using ReplyKeyboardMarkup with select chats feature: https://telegram.org/blog/profile-pics-emoji-translations#chat-selection-for-bots (the video shows InlineKeyboardButton, that’s wrong). The KeyboardButtonRequestChat has multiple fields that you can toggle for what you need: https://core.telegram.org/bots/api#keyboardbuttonrequestchat

Похожие вопросы

Карта сайта