I’d like to add actionable notifications sent to telegram,
Not sure if it possible without AppDaemon ,
but if needed i have AppDaemon4 running for some Camera IVS events ,
currently im getting message+photo in case of Camera detect predefine events,
Far as i search couldn’t find a guide for how to do it with AP .
If u can share ur code it would be really awesome so i could have some starting point.
Thanks!
The key thing is that the notification uses the inline keyboard, and then you use answer_callback_query
to respond, as touched on in the docs.
For example, you send a message like this:
- service: telegram_bot.send_message
data_template:
inline_keyboard: [[[ "Recheck", "/trains" ]]]
message: "{{ states('input_text.telegram_message') }}"
Then respond like this:
- service: telegram_bot.answer_callback_query
data_template:
message: "{{ states('input_text.telegram_message') }}"
callback_query_id: "{{ trigger.event.data.id }}"