Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to send hashtag character with my text in http request via telegram bot?

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

like image 730
user7386793 Avatar asked Jan 07 '17 11:01

user7386793


People also ask

How can I send a message to someone with my telegram bot?

Post one message from User to the Bot. Open https://api.telegram.org/bot<Bot_token>/getUpdates page. Find this message and navigate to the result->message->chat->id key. Use this ID as the [chat_id] parameter to send personal messages to the User.

Can a telegram BOT send message to another bot?

Bots can't send messages to other bots.

What are commands in Telegram bot?

Telegram allows you to use commands to build something similar to Persistent Menus on Facebook Messenger. These menus can be triggered when the user types “/” (slash) in the conversation. You can use commands to trigger specific skills in your chatbot.


1 Answers

Use percent encoding.

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

like image 66
MarcoBuster Avatar answered Sep 18 '22 18:09

MarcoBuster