mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 15:26:59 +00:00
Add timestamp to telegram events (#29714)
This commit is contained in:
parent
558d24061b
commit
6c8764fc77
@ -303,6 +303,7 @@ from_last: "<last name of the sender>"
|
|||||||
user_id: "<id of the sender>"
|
user_id: "<id of the sender>"
|
||||||
chat_id: "<origin chat id>"
|
chat_id: "<origin chat id>"
|
||||||
chat: "<chat info>"
|
chat: "<chat info>"
|
||||||
|
date: "<message timestamp>"
|
||||||
```
|
```
|
||||||
|
|
||||||
Any other message not starting with `/` will be processed as simple text, firing a `telegram_text` event on the event bus with the following `event_data`:
|
Any other message not starting with `/` will be processed as simple text, firing a `telegram_text` event on the event bus with the following `event_data`:
|
||||||
@ -314,6 +315,7 @@ from_last: "<last name of the sender>"
|
|||||||
user_id: "<id of the sender>"
|
user_id: "<id of the sender>"
|
||||||
chat_id: "<origin chat id>"
|
chat_id: "<origin chat id>"
|
||||||
chat: "<chat info>"
|
chat: "<chat info>"
|
||||||
|
date: "<message timestamp>"
|
||||||
```
|
```
|
||||||
|
|
||||||
If the message is sent from a [press from an inline button](https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating), for example, a callback query is received, and Home Assistant will fire a `telegram_callback` event with:
|
If the message is sent from a [press from an inline button](https://core.telegram.org/bots#inline-keyboards-and-on-the-fly-updating), for example, a callback query is received, and Home Assistant will fire a `telegram_callback` event with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user