I am not very familiar with web technologies and would like to know if there is a way - the idea would be to use setWebhook - to make the telegram bot do simple things (how they simply repeat the same message again and again every time someone sends this message ) without configuring the server .
I think this may not be the case, because I need to parse the JSON object to force chat_id to send messages ... but I hope someone here can know the way.
eg.
https://api.telegram.org/bot<token>/setWebHook?url=https://api.telegram.org/bot<token>/sendMessage?text=Hello%26chat_id=<somehow get the chat_id>
I tested it with a hardcoded chat id, and it works ... but of course, it will always send messages only to the same chat, no matter where it received the message.
json webhooks telegram-bot
Dois
source share