Heyhey
Im creating a script for telegram bot communication.
I want to call this script everywhere I now use telegram_bot.send_message.
So far the script looks the following (ofcourse I created the neccessary fields).
I now want to add “inline Keyboard” and added a Text Field namend “Inline Tastatur”.
But adding this (shown in the code below) results in the error: object based map does not support complex keys.
The same error occured when using the “summt” (silent in english) Field and the recipient.
Thats why I created if then for this.
Is threre any solution?
alias: Florian
if:
- condition: template
value_template: '{{ nachricht_florian == true }}'
then:
- if:
- condition: template
value_template: '{{ stumm == true }}'
then:
- action: telegram_bot.send_message
metadata: {}
data:
title: '{{titel}}'
message: '{{nachricht}}'
entity_id:
- notify.telegram_bot_florian
disable_notification: true
inline_keyboard: field entry here
else:
- action: telegram_bot.send_message
metadata: {}
data:
title: '{{titel}}'
message: '{{nachricht}}'
entity_id:
- notify.telegram_bot_florian
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0