P
P
PaulMil2021-01-04 20:26:11
PHP
PaulMil, 2021-01-04 20:26:11

How to create block of inline buttons with swipe for Telegram bot in php?

The code of the block of buttons with switching between subpages (scrolling) is required. In procedural PHP without libraries. An example block is attached. 5ff34f795ce13733105742.jpeg
I tried to search in the Telegram API docks, google - I didn’t find anything. Thanks for the help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hesy, 2021-01-05
@hesy

1. open any lib and see how it was done there in case of emergency
2. in the docks https://core.telegram.org/bots/api#sendmessage
see the reply_markup parameter
you need inline keyboard, this is https://core.telegram .org/bots/api#inlinekeyboardmarkup
well, read the description, you just need to collect an array of arrays

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question