Answer the question
In order to leave comments, you need to log in
Telegram Api Bot sends applications from the site without a + sign in the phone field. How to fix?
There is a code:
$sendToTelegram = fopen("https://api.telegram.org/bot{$token}/sendMessage?chat_id={$chat_id}&parse_mode=HTML&text={$txt}","r");
Answer the question
In order to leave comments, you need to log in
Use urlencode() to encode the parameters passed in the GET string.
According to the standard, a space is encoded with a plus, the plus itself is transmitted as% 2B.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question