mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Update telegram_command events (#2496)
Update documentation referring to telegram_command events.
This commit is contained in:
parent
25877f0be7
commit
b95e3b8f86
@ -16,7 +16,7 @@ Use Telegram on your mobile device to send messages or commands to your Home Ass
|
|||||||
|
|
||||||
A command looks like `/thecommand`
|
A command looks like `/thecommand`
|
||||||
|
|
||||||
When received by hass it will fire a `telegram.command` event on the event bus with the following `event_data`:
|
When received by hass it will fire a `telegram_command` event on the event bus with the following `event_data`:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
command: "/thecommand"
|
command: "/thecommand"
|
||||||
@ -36,7 +36,7 @@ alias: 'telegram bot that reply pong to ping'
|
|||||||
hide_entity: true
|
hide_entity: true
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: telegram.command
|
event_type: telegram_command
|
||||||
event_data:
|
event_data:
|
||||||
command: '/ping'
|
command: '/ping'
|
||||||
action:
|
action:
|
||||||
@ -50,7 +50,7 @@ Example that show keyboard interaction with `notify.telegram`
|
|||||||
```yaml
|
```yaml
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: telegram.command
|
event_type: telegram_command
|
||||||
event_data:
|
event_data:
|
||||||
command: '/start'
|
command: '/start'
|
||||||
action:
|
action:
|
||||||
@ -68,7 +68,7 @@ and an automation to trigger a related command "/siren".
|
|||||||
```yaml
|
```yaml
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: telegram.command
|
event_type: telegram_command
|
||||||
event_data:
|
event_data:
|
||||||
command: '/siren'
|
command: '/siren'
|
||||||
action:
|
action:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user