Since a view weeks I cannot send telegram messages anymore.
this Code works for more than 3 years:
self.call_service(
"telegram_bot/send_message",
message=message,
title=title,
target=id
)
# could be:
self.call_service(
"telegram_bot/send_message",
title="*a title*",
target=1234567,
message="A message",
)
Right now I got:
Error with websocket result: invalid_format: expected a dictionary for dictionary value @ data[‘target’]. Got 1234567
In an automation, this works:
actions:
- action: telegram_bot.send_message
data:
title: "*a title*"
target: "1234567"
message: "A message"
Any ideas?
sincerly
Kay