B
B
Bernard Krapivin2018-04-14 19:14:40
JavaScript
Bernard Krapivin, 2018-04-14 19:14:40

How to send url button with tg:// protocol to telegram bot?

Hello everyone, I am writing a telegram bot in JS and for some reason, when creating a button url with the tg:// protocol, it gives an error:

Error in polling: Error: failed [400] {"ok":false,"error_code":400,"description":"Bad Request: BUTTON_URL_INVALID"}

Here is the piece of code itself:
reply_markup: JSON.stringify({
                    inline_keyboard: [
                        [{ text: 'Add & Connect', url: 'tg://resolve?domain=socks&server=185.211.245.136&port=1080&user=106402828&pass=jr5udGLf' }]
                    ]
                })

Answer the question

In order to leave comments, you need to log in

1 answer(s)
7
7873828, 2018-04-14
@7873828

In the link, replace the symbols & with %26

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question