T
T
Tpydaga2020-12-04 22:13:14
PHP
Tpydaga, 2020-12-04 22:13:14

There is a telegram bot and 2 pages how to make it so that I can control where the client is redirected using the button in the tg bot?

There is a telegram bot and 2 pages, one in case of success, the other in error, how to make it so that I can control where the client is redirected using the button in the tg bot

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex K, 2020-12-04
@alexk111

In the message object, you need to pass an object of type InlineKeyboardMarkup in the "reply_markup" property, for example (JS):

{
  "inline_keyboard": [{
    "text": "Кнопка 1",
    "url: "https://website1.com/"
  }, {
    "text": "Кнопка 2",
    "url: "https://website2.com/"
  }]
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question