Sending text works fine, tried both telegram_bot.send_photo and notify.telegram_notify
# Telegram bot
telegram_bot:
platform: polling
api_key: xxxx:xxxxxx
allowed_chat_ids:
-xxxxx
- name: telegram_notify
platform: telegram
chat_id: -xxxxxxx
api_key: xxxxxx:xxxxxxx
this is the 2 different scripts which gives the same error:
telegram_livingrom_pic:
alias: 'telegram_livingrom_pic'
sequence:
- service: notify.telegram_notify
data:
title: Home Assistant Security
message: 'Living room picture.'
data:
photo:
- file: /share/livingroom1.jpg
caption: Living room picture
telegram_livingrom_pic2:
alias: 'telegram_livingrom_pic2'
sequence:
- service: telegram_bot.send_photo
data_template:
message: "Hello, I am HASS boat. The custom keyboard is activated."
file: /share/0df8c88e-43a8-11e7-9e7a-d3820533e437.jpg
this is the error message:
Can't send file with kwargs: {'title': 'Home Assistant Security', 'message': 'Living room picture.', 'file': '/share/livingroom1.jpg', 'caption': 'Living room picture'}
02:12 components/telegram_bot/__init__.py (ERROR)
'/share/livingroom1.jpg' are not secure to load data from!
02:12 components/telegram_bot/__init__.py (WARNING)