Skip to content

Commit 910824d

Browse files
authored
Telegram change for 0.46 (home-assistant#2736)
* Update telegram_bot.webhooks.markdown * Update telegram_bot.polling.markdown * Update notify.telegram.markdown
1 parent 152ec0c commit 910824d

File tree

3 files changed

+30
-29
lines changed

3 files changed

+30
-29
lines changed

source/_components/notify.telegram.markdown

+6-6
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ To enable Telegram notifications in your installation, add the following to your
4848
```yaml
4949
# Example configuration.yaml entry for the Telegram Bot
5050
telegram_bot:
51-
platform: polling
52-
api_key: ABCDEFGHJKLMNOPQRSTUVXYZ
53-
allowed_chat_ids:
54-
- CHAT_ID_1
55-
- CHAT_ID_2
56-
- CHAT_ID_3
51+
- platform: polling
52+
api_key: ABCDEFGHJKLMNOPQRSTUVXYZ
53+
allowed_chat_ids:
54+
- CHAT_ID_1
55+
- CHAT_ID_2
56+
- CHAT_ID_3
5757

5858
# Example configuration.yaml entry for the notifier
5959
notify:

source/_components/telegram_bot.polling.markdown

+5-5
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ To integrate this into Home Assistant, add the following section to your `config
2222
# Example configuration.yaml entry
2323

2424
telegram_bot:
25-
platform: polling
26-
api_key: <telegram api key>
27-
allowed_chat_ids:
28-
- 12345
29-
- 67890
25+
- platform: polling
26+
api_key: <telegram api key>
27+
allowed_chat_ids:
28+
- 12345
29+
- 67890
3030
```
3131
3232
Configuration variables:

source/_components/telegram_bot.webhooks.markdown

+19-18
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ http:
2424
base_url: <public_url> # the Home Assistant https url which is exposed to the internet.
2525

2626
telegram_bot:
27-
platform: webhooks
28-
api_key: telegram api key
29-
parse_mode: html
30-
allowed_chat_ids:
31-
- 12345
32-
- 67890
27+
- platform: webhooks
28+
api_key: telegram api key
29+
parse_mode: html
30+
allowed_chat_ids:
31+
- 12345
32+
- 67890
3333
```
3434
3535
Configuration variables:
@@ -38,6 +38,7 @@ Configuration variables:
3838
- **api_key** (*Required*): The API token of your bot.
3939
- **trusted_networks** (*Optional*): Telegram server access ACL as list. Defaults to `149.154.167.197-233`.
4040
- **parse_mode** (*Optional*): Default parser for messages if not explicit in message data: 'html' or 'markdown'. Default is 'markdown'.
41+
- **url** (*Optional*): Allow to overwrite the `base_url` from http component for diferent configs.
4142

4243
To get your `chat_id` and `api_key` follow the instructions [here](/components/notify.telegram) .
4344

@@ -49,16 +50,16 @@ http:
4950
base_url: <public_url>
5051
5152
telegram_bot:
52-
platform: webhooks
53-
api_key: ABCDEFGHJKLMNOPQRSTUVXYZ
54-
trusted_networks:
55-
- 149.154.167.197/32
56-
- 149.154.167.198/31
57-
- 149.154.167.200/29
58-
- 149.154.167.208/28
59-
- 149.154.167.224/29
60-
- 149.154.167.232/31
61-
allowed_chat_ids:
62-
- 12345
63-
- 67890
53+
- platform: webhooks
54+
api_key: ABCDEFGHJKLMNOPQRSTUVXYZ
55+
trusted_networks:
56+
- 149.154.167.197/32
57+
- 149.154.167.198/31
58+
- 149.154.167.200/29
59+
- 149.154.167.208/28
60+
- 149.154.167.224/29
61+
- 149.154.167.232/31
62+
allowed_chat_ids:
63+
- 12345
64+
- 67890
6465
```

0 commit comments

Comments
 (0)