From 984edefb843ba4f0130d28a351218c3fa3b10e7e Mon Sep 17 00:00:00 2001 From: icovada Date: Mon, 22 Aug 2016 19:17:36 +0200 Subject: [PATCH] Update Telegram notify Add documentation for Document file format as per pull request 2937 on main project --- source/_components/notify.telegram.markdown | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/source/_components/notify.telegram.markdown b/source/_components/notify.telegram.markdown index 07455bd989d..ff6ae938e5b 100644 --- a/source/_components/notify.telegram.markdown +++ b/source/_components/notify.telegram.markdown @@ -92,6 +92,31 @@ action: - **username** (*Optional*): Username for an URL which require HTTP basic authentication. - **password** (*Optional*): Username for an URL which require HTTP basic authentication. +### {% linkable_title Document support %} + +```yaml +... +action: + service: notify.NOTIFIER_NAME + data: + title: Send a document + message: That's a example that sends a document. + data: + document: + - url: http://192.168.1.28/bounce.gif + username: admin + password: secrete + - file: /tmp/whatever.odf + caption: Picture Title xy + - url: http://somebla.ie/video.mp4 + caption: I.e. for a Title +``` + +- **url** or **file** (*Required*): For local or remote path to an image. +- **caption** (*Optional*): The title of the image. +- **username** (*Optional*): Username for an URL which require HTTP basic authentication. +- **password** (*Optional*): Username for an URL which require HTTP basic authentication. + ### {% linkable_title Location support %} ```yaml