mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 14:56:53 +00:00
Small updates in Telegram bot docs (#15126)
Small updates in Telegram bot docs
This commit is contained in:
parent
57db624c5d
commit
de95fee2a6
@ -167,7 +167,7 @@ Remove the bot from the chat group where it was added.
|
|||||||
|---------------------------|----------|--------------------------------------------------|
|
|---------------------------|----------|--------------------------------------------------|
|
||||||
| `chat_id` | no | The chat_id from where to remove the bot. |
|
| `chat_id` | no | The chat_id from where to remove the bot. |
|
||||||
|
|
||||||
## `telegram` notification platform
|
## Telegram notification platform
|
||||||
|
|
||||||
The [`telegram` notification platform](/integrations/telegram) requires the `telegram_bot` integration to work with, and it's designed to generate a customized shortcut (`notify.USERNAME`) to send notifications (messages, photos, documents and locations) to a particular `chat_id` with the old syntax, allowing backward compatibility.
|
The [`telegram` notification platform](/integrations/telegram) requires the `telegram_bot` integration to work with, and it's designed to generate a customized shortcut (`notify.USERNAME`) to send notifications (messages, photos, documents and locations) to a particular `chat_id` with the old syntax, allowing backward compatibility.
|
||||||
|
|
||||||
@ -175,8 +175,8 @@ The required YAML configuration now reduces to:
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
notify:
|
notify:
|
||||||
- name: NOTIFIER_NAME
|
- platform: telegram
|
||||||
platform: telegram
|
name: NOTIFIER_NAME
|
||||||
chat_id: USER_CHAT_ID
|
chat_id: USER_CHAT_ID
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -423,4 +423,4 @@ Telegram callbacks also support arguments and commands the same way as normal me
|
|||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
|
|
||||||
In this case, having a callback with `/repeat 1 2 3` with pop a notification saying `I repeat: [1, 2, 3]`
|
In this case, having a callback with `/repeat 1 2 3` will pop a notification saying `I repeat: [1, 2, 3]`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user