mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 23:36:51 +00:00
Update telegram_webhooks.markdown (#2435)
* Update telegram_webhooks.markdown The telegram.command is the wrong syntax and should be telegram_command. This took me 3 days to figure out so I hope it'll save somebody else the time. * Update telegram_webhooks.markdown
This commit is contained in:
parent
8c1f040f44
commit
9cdc57e63e
@ -63,7 +63,7 @@ telegram_webhooks:
|
|||||||
|
|
||||||
### {% linkable_title Configuration samples %}
|
### {% linkable_title Configuration samples %}
|
||||||
|
|
||||||
Telegram webhooks raise an event `telegram.command` with a payload.
|
Telegram webhooks raise an event `telegram_command` with a payload.
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -80,7 +80,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:
|
||||||
@ -94,7 +94,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:
|
||||||
@ -112,7 +112,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