S
S
Sergei Tolkachev2020-11-10 15:51:17
PHP
Sergei Tolkachev, 2020-11-10 15:51:17

Why webhook URL for Telegram bot with parameters is not saved?

For the telegram bot to work, you need to set a webhook url for it. In my case, this url with parameters, one of which is "token=my_bot_token". Found that when using setWebhook, the parameters of this url are cut off.
Instead of https;//my-site.ru?param=1&token=my_bot_token , only https://my-site.ru?param=1
Is this treated somehow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Tolkachev, 2020-11-10
@sergeytolkachyov

It was necessary to replace the "&" characters when prompted. %26 instead of &.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question