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
This commit is contained in:
Carlos Duarte Do Nascimento (Chester) 2019-07-28 13:26:59 -04:00 committed by Franck Nijhof
parent 0e36ae0d84
commit bf12bae438

View File

@ -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: