N
N
Nikita Ustimenko2018-01-27 15:39:46
PHP
Nikita Ustimenko, 2018-01-27 15:39:46

How to send a post with a hashtag via post request?

There is a form
In it, the user is asked to enter a hashtag
. He enters, for example, #test
AND sends a POST request via url

https://api.telegram.org/bot<token>/sendMessage?chat_id=-99999&text=Ваш хештег:+{{hashtag}}

{{hashtag}} - variable where #test goes
When displayed on the screen, #test is not displayed.
What needs to be specified in this url so that the #test is displayed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-01-27
@alexr64

php.net/manual/en/function.urlencode.php
https://en.wikipedia.org/wiki/Percent-encoding

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question