A
A
adrenalinruslan2019-01-08 11:25:53
PHP
adrenalinruslan, 2019-01-08 11:25:53

Why doesn't inline_keyboard come out?

I want 2 buttons to come out under the text Hello World!, but they do not come out, where is the error?

apiRequestJson("sendMessage", [
        'chat_id' => $chat_id, 
        'text' => 'Hello World!',
        'reply_markup' => [
          'inline_keyboard' => [
            [
              hex2bin('F09F92B3') . ' ОПЛАТИТЬ ДОСТУП',
            ],
            [
              hex2bin('E29D93') . ' ОСТАЛИСЬ ВОПРОСЫ',
            ],
          ],
        ],
      ]);

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2019-01-08
@webinar

but they don't come out

have you tried a laxative?
There is documentation:
https://core.telegram.org/bots/api#inlinekeyboardbutton
inline_keyboard is an object, and you shove a regular array
at least
text => 'текст кнопки'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question