K
K
keyp2018-03-10 16:31:22
PHP
keyp, 2018-03-10 16:31:22

How to make sure that the URL does not break when passed to a telegram bot request?

Good afternoon!
I want to send a photo or inputmediagroup with a certain action, it is sent by the following request in the browser perfectly:
https://api.telegram.org/bot{token}/sendMediaGroup...
when trying to form such a request in php, the following request is issued:
[{"type ":"photo","media":"https:\/\/pp.userapi.com\/c4299\/u2211353\/80192906\/x_240264cc.jpg"},{"type":"photo","media ":"https:\/\/pp.userapi.com\/c413729\/v413729353\/7164\/q2nfOarXMJo.jpg"},{"type":"photo","media":"https:\/\ /pp.userapi.com\/c836426\/v836426353\/ce1d\/xySiU5gi-6I.jpg"}]
why does the link break this way and how can I fix it? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question