Photo sending telegram

I’m trying to send photos to the telegram. Next script

1532744940750':
  alias: mandando foto
  sequence:
  - data:
      photo:
        url: http://192.168.1.153/snap.jpeg
        caption: 'Campainha Escada'
    service: telegram_bot.send_photo

I have this error.

Can't send file with kwargs: {'photo': OrderedDict([('url', 'http://192.168.1.153/snap.jpeg')])}

what is missing ? I understand that he is saying that the arguments are wrong. but I do not know what to do.

sorted out

'1532744940750':
  alias: mandando foto
  sequence:
  - data:
      data:
        photo:
          caption: Campainha
          url: http://192.168.1.153/snap.jpeg
      message: Campainha
      title: Home Assistant
    service: notify.telegram
3 Likes