mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Add message_thread_id to telegram_text and telegram_command events (#35785)
This commit is contained in:
parent
480561fbd7
commit
c5312ffce9
@ -314,6 +314,7 @@ 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>"
|
date: "<message timestamp>"
|
||||||
|
message_thread_id: "<message thread id>"
|
||||||
```
|
```
|
||||||
|
|
||||||
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`:
|
||||||
@ -326,6 +327,7 @@ 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>"
|
date: "<message timestamp>"
|
||||||
|
message_thread_id: "<message thread id>"
|
||||||
```
|
```
|
||||||
|
|
||||||
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