Skip to content

Commit 06b6e4b

Browse files
dullageLandrash
authored andcommitted
Clarified requirements for allowed_chat_ids parameter (home-assistant#3068)
* Clarified requirements for allowed_chat_ids parameter I'm not 100% sure on this but my tests seem to back it up. Unless I list both the chat id and my user id in the allowed_chat_ids parameter then I receive a "Incoming message is not allowed" message in the HA log. * Provided instructions to obtain user id
1 parent 03bab28 commit 06b6e4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/_components/telegram_bot.webhooks.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ telegram_bot:
3636
3737
Configuration variables:
3838
39-
- **allowed_chat_ids** (*Required*): A list of user in the `user_id` Telegram format enabled to interact to webhook
39+
- **allowed_chat_ids** (*Required*): A list of ids representing the users and group chats that are authorised to interact with the webhook.
4040
- **api_key** (*Required*): The API token of your bot.
4141
- **trusted_networks** (*Optional*): Telegram server access ACL as list. Defaults to `149.154.167.197-233`.
4242
- **parse_mode** (*Optional*): Default parser for messages if not explicit in message data: 'html' or 'markdown'. Default is 'markdown'.
4343
- **url** (*Optional*): Allow to overwrite the `base_url` from http component for diferent configs.
4444

45-
To get your `chat_id` and `api_key` follow the instructions [here](/components/notify.telegram) .
45+
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.
4646

4747
Full configuration sample:
4848

0 commit comments

Comments
 (0)