From 52769fcf6ae28cc94d4963016f7dddfd670c8998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Infante?= Date: Sun, 17 Sep 2017 15:03:49 +0200 Subject: [PATCH] Sample in url configuration variable (#3389) * Sample in url configuration variable An example structure for the url property has been added. To prevent the full url from being written base_url + /api/telegram_webhooks * Minor change --- source/_components/telegram_bot.webhooks.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/_components/telegram_bot.webhooks.markdown b/source/_components/telegram_bot.webhooks.markdown index 3b4675eca7b..0cf3a4db249 100644 --- a/source/_components/telegram_bot.webhooks.markdown +++ b/source/_components/telegram_bot.webhooks.markdown @@ -42,7 +42,7 @@ Configuration variables: - **parse_mode** (*Optional*): Default parser for messages if not explicit in message data: 'html' or 'markdown'. Default is 'markdown'. - **proxy_url** (*Optional*): Proxy url if working behind one (`socks5://proxy_ip:proxy_port`) - **proxy_params** (*Optional*): Proxy configuration parameters, as dict, if working behind a proxy (`username`, `password`, etc.) -- **url** (*Optional*): Allow to overwrite the `base_url` from http component for diferent configs. +- **url** (*Optional*): Allow to overwrite the `base_url` from the [`http`](/components/http/) component for different configurations (`https://:`). To get your `chat_id` and `api_key` follow the instructions [here](/components/notify.telegram). As well as authorising the chat, if you have added your bot to a group you will also need to authorise any user that will be interacting with the webhook. When an unauthorised user tries to interact with the webhook Home Assistant will raise an error ("Incoming message is not allowed"), you can easily obtain the the users id by looking in the "from" section of this error message.