core/homeassistant/components/telegram_bot
Eugenio Panadero 910020bc5f Fix Telegram Bot send file to multiple targets, snapshots of HA cameras, variable templating, digest auth (#7771)
* fix double template rendering when messages come from notify.telegram

* fix 'chat' information not present in callback queries

* better inline keyboards with yaml

To make a row of InlineKeyboardButtons you pass:
- a list of tuples like: `[(text_b1, data_callback_b1), (text_b2, data_callback_b2), ...]
- a string like: `/cmd1, /cmd2, /cmd3`
- or a string like: `text_b1:/cmd1, text_b2:/cmd2`

Example:
```yaml
data:
   message: 'TV is off'
   disable_notification: true
   inline_keyboard:
     - TV ON:/service_call switch.turn_on switch.tv, Other:/othercmd
     - /help, /init
```

* fix send file to multiple targets

* fix message templating, multiple file targets, HA cameras

- Allow templating for caption, url, file, longitude and latitude fields
- Fix send a file to multiple targets
- Load data with some retrying for HA cameras, which return 500 one or two times sometimes (generic cams, always!).
- Doc in services for new inline keyboards yaml syntax: `Text button:/command`

* HttpDigest authentication as proposed in #7396

* review changes

- Don't use `file` as variable name.
- For loop
- Simplify filter allowed `chat_id`s.

* Don't use `file` as variable name!

* make params outside the while loop

* fix chat_id validation when editing sent messages
2017-05-26 21:05:12 +02:00
..
__init__.py Fix Telegram Bot send file to multiple targets, snapshots of HA cameras, variable templating, digest auth (#7771) 2017-05-26 21:05:12 +02:00
polling.py Telegram Bot enhancements with callback queries and new notification services (#7454) 2017-05-09 21:42:17 -07:00
services.yaml Fix Telegram Bot send file to multiple targets, snapshots of HA cameras, variable templating, digest auth (#7771) 2017-05-26 21:05:12 +02:00
webhooks.py Ensure https base_url in telegram bot (#7726) 2017-05-23 10:16:54 -07:00