G
G
Gleb Starkov2020-11-25 14:53:18
PHP
Gleb Starkov, 2020-11-25 14:53:18

How to set the "select group" command in a telegram bot?

Hello!
I'm writing a bot on Laravel 8.
Created an inline button "Select a group"
How to hang an event on this button to select a group?

5fbe45a2eaa9d533254640.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
Gleb Starkov, 2020-11-27
@colonel

Everything turned out to be simple, it was necessary to add the correct url for the button:

$inlineLayout = [
            [
                Keyboard::inlineButton(['text' => 'Выбрать группу', 'callback_data' => 'data', 'url' => 'https://t.me/all2all_bot?startgroup=c']),
            ]
        ];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question