Answer the question
In order to leave comments, you need to log in
How to send HTTP request message to user via Bot Telegram?
Hello. Help me figure out how to send a message via Telegram's HTTP request. Created a bot, got a Token.
View request:
https://api.telegram.org/bot<Token>/[email protected]&text=Hello
{"ok":false,"error_code":400,"description":"[Error]: Bad Request: channel not found"}
Answer the question
In order to leave comments, you need to log in
The entry appears [email protected]
to be incorrect. Here you need to specify a unique (digital) Chat ID. Sending messages to any Telegram login (outside a specific chat) is currently unavailable.
Where to get Chat ID? Just write any message to your bot and display the results using getUpdates() . You can make it even easier, for example, by adding similar functionality to your bot.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question