From f78884b7a1e12076be1344f784a1c51aa2ed627c Mon Sep 17 00:00:00 2001 From: Robin Moffatt Date: Wed, 12 Jun 2019 15:42:50 +0100 Subject: [PATCH] Add clarification on URL --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bcb8fe4..4a5c579 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,7 @@ Currently you must use and create your own bot, e.g. the ``KafkaConnectBot`` usi ### Determine and verify the (group) chat ID - The group chat id can be retrieved from the Telegram API, using the output fom the following command, replacing ``XXtokenXX`` by the actual token - ``curl https://api.telegram.org/botXXtokenXX/getUpdates`` + - Note that `bot` must always be present—it's just `XXtokenXX` that you need to replace - In the JSON response, e.g ``chat":{"id":-999991234,"title":"Burglar-alerts","type":"group"`` you can find the chat id, here -999991234 - Your bot should be able to send using a simple curl command: - ``curl -X POST -H "Content-Type: application/json" -d '{"chat_id":"-999991234", "text":"Hello world!"}' https://api.telegram.org/botXXtokenXX/sendMessage``