From bf12bae4384a27c4461c21fd137659bbbecc5a09 Mon Sep 17 00:00:00 2001 From: "Carlos Duarte Do Nascimento (Chester)" Date: Sun, 28 Jul 2019 13:26:59 -0400 Subject: [PATCH] Minor clarification on Telegram bot setup (#9988) * clarify: ID only returned if a message was sent It took me quite a long time fighting a near-empty empty JSON * Drop redundant phrase Next paragraph has it all --- source/_components/telegram.markdown | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/_components/telegram.markdown b/source/_components/telegram.markdown index 067534e6dca..6594709dc91 100644 --- a/source/_components/telegram.markdown +++ b/source/_components/telegram.markdown @@ -20,9 +20,7 @@ The requirements are: - You need to configure a [Telegram bot in Home Assistant](/components/telegram_bot) and define there your API key and the allowed chat ids to interact with. - The `chat_id` of an allowed user. -To retrieve your `chat_id`, contact any of the Telegram bots created for this purpose (@myidbot, @get_id_bot) - -The quickest way to retrieve your `chat_id` is visiting [https://api.telegram.org/botYOUR_API_TOKEN/getUpdates](https://api.telegram.org/botYOUR_API_TOKEN/getUpdates) or to use `$ curl -X GET https://api.telegram.org/botYOUR_API_TOKEN/getUpdates`. Replace `YOUR_API_TOKEN` with your actual token. +The quickest way to retrieve your `chat_id` is visiting [https://api.telegram.org/botYOUR_API_TOKEN/getUpdates](https://api.telegram.org/botYOUR_API_TOKEN/getUpdates) or to use `$ curl -X GET https://api.telegram.org/botYOUR_API_TOKEN/getUpdates` **after** you have sent the bot a message. Replace `YOUR_API_TOKEN` with your actual token. The result set will include your chat ID as `id` in the `chat` section: