0 votes
39 views

I use this format to send text messages to a special group via my Bot in Telegram , but I don't know how to send hashtag character in my text ?

https://api.telegram.org/bot/sendMessage?chat_id

Source Author: user7386793

by (1.4k points)   | 39 views

2 Answers

0 votes

Use percent encoding.

For example: https://api.telegram.org/bot<token>/sendMessage?chat_id=12345678&text=This%20is%20an%20%23hashtag

Credit to: MarcoBuster

by (2.2k points)  
0 votes

If you are using php for your bot, you can use this in your script

 "https://api.telegram.org/bot/sendMessage?chat_id=xxxxxxxx&text=".urlencode($text)

Credit to: Herossandro

by (2.2k points)  

Related questions

0 votes
1 answer
0 votes
0 answers
0 votes
0 answers
asked Jun 28 by ChandaGHinton (120 points) | 15 views
0 votes
0 answers
asked Jul 20 by AnnaJFinnegan (120 points) | 4 views
+1 vote
1 answer
asked Oct 4, 2020 by toheed (1.4k points) | 104 views
0 votes
0 answers
Welcome to Givemeans.net here you can ask questions and get the answers from other members of the community.
143 questions
123 answers
43 comments
159 users