2017-10-30 20:39:12 +00:00
# Describes the format for available Telegram bot services
2017-05-10 04:42:17 +00:00
2017-10-30 20:39:12 +00:00
send_message :
2021-05-15 05:30:41 +00:00
name : Send message
2017-10-30 20:39:12 +00:00
description : Send a notification.
2017-05-10 04:42:17 +00:00
fields :
message :
2021-05-15 05:30:41 +00:00
name : Message
2017-05-10 04:42:17 +00:00
description : Message body of the notification.
2021-05-15 05:30:41 +00:00
required : true
2017-05-10 04:42:17 +00:00
example : The garage door has been open for 10 minutes.
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
title :
2021-05-15 05:30:41 +00:00
name : Title
2017-05-10 04:42:17 +00:00
description : Optional title for your notification. Will be composed as '%title\n%message'
2020-04-05 15:27:16 +00:00
example : "Your Garage Door Friend"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
target :
2021-05-15 05:30:41 +00:00
name : Target
2017-05-10 04:42:17 +00:00
description : An array of pre-authorized chat_ids to send the notification to. If not present, first allowed chat_id is the default.
2020-04-05 15:27:16 +00:00
example : "[12345, 67890] or 12345"
2021-05-15 05:30:41 +00:00
selector :
object :
2017-05-10 04:42:17 +00:00
parse_mode :
2021-05-15 05:30:41 +00:00
name : Parse mode
description : "Parser for the message text."
selector :
select :
options :
2021-06-28 18:43:23 +00:00
- "html"
- "markdown"
- "markdown2"
2017-05-10 04:42:17 +00:00
disable_notification :
2021-05-15 05:30:41 +00:00
name : Disable notification
2017-05-10 04:42:17 +00:00
description : Sends the message silently. iOS users and Web users will not receive a notification, Android users will receive a notification with no sound.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2017-05-10 04:42:17 +00:00
disable_web_page_preview :
2021-05-15 05:30:41 +00:00
name : Disable web page preview
2017-05-10 04:42:17 +00:00
description : Disables link previews for links in the message.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2020-02-03 20:23:58 +00:00
timeout :
2021-05-15 05:30:41 +00:00
name : Timeout
2021-05-25 12:45:17 +00:00
description : Timeout for send message. Will help with timeout errors (poor internet connection, etc)s
selector :
number :
min : 1
max : 3600
unit_of_measurement : seconds
2017-05-10 04:42:17 +00:00
keyboard :
2021-05-15 05:30:41 +00:00
name : Keyboard
2019-05-02 19:14:40 +00:00
description : List of rows of commands, comma-separated, to make a custom keyboard. Empty list clears a previously set keyboard.
2017-05-10 04:42:17 +00:00
example : '["/command1, /command2", "/command3"]'
2021-05-15 05:30:41 +00:00
selector :
object :
2017-05-10 04:42:17 +00:00
inline_keyboard :
2021-05-15 05:30:41 +00:00
name : Inline keyboard
2018-01-27 19:58:27 +00:00
description : List of rows of commands, comma-separated, to make a custom inline keyboard with buttons with associated callback data.
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 19:05:12 +00:00
example : '["/button1, /button2", "/button3"] or ["Text button1:/button1, Text button2:/button2", "Text button3:/button3"] or [[["Text button1", "/button1"], ["Text button2", "/button2"]], [["Text button3", "/button3"]]]'
2021-05-15 05:30:41 +00:00
selector :
object :
2020-10-29 22:55:25 +00:00
message_tag :
2021-05-15 05:30:41 +00:00
name : Message tag
2021-06-28 18:43:23 +00:00
description : "Tag for sent message. In telegram_sent event data: {{trigger.event.data.message_tag}}"
2020-10-29 22:55:25 +00:00
example : "msg_to_edit"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
send_photo :
2021-05-15 05:30:41 +00:00
name : Send photo
2017-10-30 20:39:12 +00:00
description : Send a photo.
2017-05-10 04:42:17 +00:00
fields :
url :
2021-05-15 05:30:41 +00:00
name : URL
2017-05-10 04:42:17 +00:00
description : Remote path to an image.
2020-04-05 15:27:16 +00:00
example : "http://example.org/path/to/the/image.png"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
file :
2021-05-15 05:30:41 +00:00
name : File
2017-05-10 04:42:17 +00:00
description : Local path to an image.
2020-04-05 15:27:16 +00:00
example : "/path/to/the/image.png"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
caption :
2021-05-15 05:30:41 +00:00
name : Caption
2017-05-10 04:42:17 +00:00
description : The title of the image.
2020-04-05 15:27:16 +00:00
example : "My image"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
username :
2021-05-15 05:30:41 +00:00
name : Username
2021-06-28 18:43:23 +00:00
description : Username for a URL which require HTTP authentication.
2017-05-10 04:42:17 +00:00
example : myuser
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
password :
2021-05-15 05:30:41 +00:00
name : Password
2021-06-28 18:43:23 +00:00
description : Password (or bearer token) for a URL which require HTTP authentication.
2018-03-23 18:16:57 +00:00
example : myuser_pwd
2021-05-15 05:30:41 +00:00
selector :
text :
2021-06-28 18:43:23 +00:00
authentication :
name : Authentication method
description : Define which authentication method to use. Set to `digest` to use HTTP digest authentication, or `bearer_token` for OAuth 2.0 bearer token authentication. Defaults to `basic`.
default : digest
selector :
select :
options :
- "digest"
- "bearer_token"
2018-03-23 18:16:57 +00:00
target :
2021-05-15 05:30:41 +00:00
name : Target
2018-03-23 18:16:57 +00:00
description : An array of pre-authorized chat_ids to send the document to. If not present, first allowed chat_id is the default.
2020-04-05 15:27:16 +00:00
example : "[12345, 67890] or 12345"
2021-05-15 05:30:41 +00:00
selector :
object :
2020-12-15 14:20:08 +00:00
parse_mode :
2021-05-15 05:30:41 +00:00
name : Parse mode
description : "Parser for the message text."
selector :
select :
options :
2021-06-28 18:43:23 +00:00
- "html"
- "markdown"
- "markdown2"
2018-03-23 18:16:57 +00:00
disable_notification :
2021-05-15 05:30:41 +00:00
name : Disable notification
2018-03-23 18:16:57 +00:00
description : Sends the message silently. iOS users and Web users will not receive a notification, Android users will receive a notification with no sound.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2019-03-16 01:18:10 +00:00
verify_ssl :
2021-05-15 05:30:41 +00:00
name : Verify SSL
2019-03-16 01:18:10 +00:00
description : Enable or disable SSL certificate verification. Set to false if you're downloading the file from a URL and you don't want to validate the SSL certificate of the server.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2020-02-03 20:23:58 +00:00
timeout :
2021-05-15 05:30:41 +00:00
name : Timeout
2020-02-03 20:23:58 +00:00
description : Timeout for send photo. Will help with timeout errors (poor internet connection, etc)
2021-05-15 05:30:41 +00:00
selector :
number :
min : 1
max : 3600
unit_of_measurement : seconds
2018-03-23 18:16:57 +00:00
keyboard :
2021-05-15 05:30:41 +00:00
name : Keyboard
2018-03-23 18:16:57 +00:00
description : List of rows of commands, comma-separated, to make a custom keyboard.
example : '["/command1, /command2", "/command3"]'
2021-05-15 05:30:41 +00:00
selector :
object :
2018-03-23 18:16:57 +00:00
inline_keyboard :
2021-05-15 05:30:41 +00:00
name : Inline keyboard
2018-03-23 18:16:57 +00:00
description : List of rows of commands, comma-separated, to make a custom inline keyboard with buttons with associated callback data.
example : '["/button1, /button2", "/button3"] or [[["Text button1", "/button1"], ["Text button2", "/button2"]], [["Text button3", "/button3"]]]'
2021-05-15 05:30:41 +00:00
selector :
object :
2020-10-29 22:55:25 +00:00
message_tag :
2021-05-15 05:30:41 +00:00
name : Message tag
2021-06-28 18:43:23 +00:00
description : "Tag for sent message. In telegram_sent event data: {{trigger.event.data.message_tag}}"
2020-10-29 22:55:25 +00:00
example : "msg_to_edit"
2021-05-15 05:30:41 +00:00
selector :
text :
2018-03-23 18:16:57 +00:00
send_sticker :
2021-05-15 05:30:41 +00:00
name : Send sticker
2018-03-23 18:16:57 +00:00
description : Send a sticker.
fields :
url :
2021-05-15 05:30:41 +00:00
name : URL
2020-12-15 14:20:08 +00:00
description : Remote path to a static .webp or animated .tgs sticker.
2020-04-05 15:27:16 +00:00
example : "http://example.org/path/to/the/sticker.webp"
2021-05-15 05:30:41 +00:00
selector :
text :
2018-03-23 18:16:57 +00:00
file :
2021-05-15 05:30:41 +00:00
name : File
2020-12-15 14:20:08 +00:00
description : Local path to a static .webp or animated .tgs sticker.
2020-04-05 15:27:16 +00:00
example : "/path/to/the/sticker.webp"
2021-05-15 05:30:41 +00:00
selector :
text :
2018-03-23 18:16:57 +00:00
username :
2021-05-15 05:30:41 +00:00
name : Username
2021-06-28 18:43:23 +00:00
description : Username for a URL which require HTTP authentication.
2018-03-23 18:16:57 +00:00
example : myuser
2021-05-15 05:30:41 +00:00
selector :
text :
2018-03-23 18:16:57 +00:00
password :
2021-05-15 05:30:41 +00:00
name : Password
2021-06-28 18:43:23 +00:00
description : Password (or bearer token) for a URL which require HTTP authentication.
2017-05-10 04:42:17 +00:00
example : myuser_pwd
2021-05-15 05:30:41 +00:00
selector :
text :
2021-06-28 18:43:23 +00:00
authentication :
name : Authentication method
description : Define which authentication method to use. Set to `digest` to use HTTP digest authentication, or `bearer_token` for OAuth 2.0 bearer token authentication. Defaults to `basic`.
default : digest
selector :
select :
options :
- "digest"
- "bearer_token"
2017-05-10 04:42:17 +00:00
target :
2021-05-15 05:30:41 +00:00
name : Target
2017-05-10 04:42:17 +00:00
description : An array of pre-authorized chat_ids to send the document to. If not present, first allowed chat_id is the default.
2020-04-05 15:27:16 +00:00
example : "[12345, 67890] or 12345"
2021-05-15 05:30:41 +00:00
selector :
object :
2017-05-10 04:42:17 +00:00
disable_notification :
2021-05-15 05:30:41 +00:00
name : Disable notification
2017-05-10 04:42:17 +00:00
description : Sends the message silently. iOS users and Web users will not receive a notification, Android users will receive a notification with no sound.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2019-03-16 01:18:10 +00:00
verify_ssl :
2021-05-15 05:30:41 +00:00
name : Verify SSL
2019-03-16 01:18:10 +00:00
description : Enable or disable SSL certificate verification. Set to false if you're downloading the file from a URL and you don't want to validate the SSL certificate of the server.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2020-02-03 20:23:58 +00:00
timeout :
2021-05-15 05:30:41 +00:00
name : Timeout
2020-02-03 20:23:58 +00:00
description : Timeout for send sticker. Will help with timeout errors (poor internet connection, etc)
2021-05-15 05:30:41 +00:00
selector :
number :
min : 1
max : 3600
unit_of_measurement : seconds
2017-05-10 04:42:17 +00:00
keyboard :
2021-05-15 05:30:41 +00:00
name : Keyboard
2017-05-10 04:42:17 +00:00
description : List of rows of commands, comma-separated, to make a custom keyboard.
example : '["/command1, /command2", "/command3"]'
2021-05-15 05:30:41 +00:00
selector :
object :
2017-05-10 04:42:17 +00:00
inline_keyboard :
2021-05-15 05:30:41 +00:00
name : Inline keyboard
2018-01-27 19:58:27 +00:00
description : List of rows of commands, comma-separated, to make a custom inline keyboard with buttons with associated callback data.
2017-11-11 23:13:35 +00:00
example : '["/button1, /button2", "/button3"] or [[["Text button1", "/button1"], ["Text button2", "/button2"]], [["Text button3", "/button3"]]]'
2021-05-15 05:30:41 +00:00
selector :
object :
2020-10-29 22:55:25 +00:00
message_tag :
2021-05-15 05:30:41 +00:00
name : Message tag
2021-06-28 18:43:23 +00:00
description : "Tag for sent message. In telegram_sent event data: {{trigger.event.data.message_tag}}"
2020-10-29 22:55:25 +00:00
example : "msg_to_edit"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-11-11 23:13:35 +00:00
2020-12-15 14:20:08 +00:00
send_animation :
2021-05-15 05:30:41 +00:00
name : Send animation
2020-12-15 14:20:08 +00:00
description : Send an anmiation.
fields :
url :
2021-05-15 05:30:41 +00:00
name : URL
2020-12-15 14:20:08 +00:00
description : Remote path to a GIF or H.264/MPEG-4 AVC video without sound.
example : "http://example.org/path/to/the/animation.gif"
2021-05-15 05:30:41 +00:00
selector :
text :
2020-12-15 14:20:08 +00:00
file :
2021-05-15 05:30:41 +00:00
name : File
2020-12-15 14:20:08 +00:00
description : Local path to a GIF or H.264/MPEG-4 AVC video without sound.
example : "/path/to/the/animation.gif"
2021-05-15 05:30:41 +00:00
selector :
text :
2020-12-15 14:20:08 +00:00
caption :
2021-05-15 05:30:41 +00:00
name : Caption
2020-12-15 14:20:08 +00:00
description : The title of the animation.
example : "My animation"
2021-05-15 05:30:41 +00:00
selector :
text :
2020-12-15 14:20:08 +00:00
username :
2021-05-15 05:30:41 +00:00
name : Username
2021-06-28 18:43:23 +00:00
description : Username for a URL which require HTTP authentication.
2020-12-15 14:20:08 +00:00
example : myuser
2021-05-15 05:30:41 +00:00
selector :
text :
2020-12-15 14:20:08 +00:00
password :
2021-05-15 05:30:41 +00:00
name : Password
2021-06-28 18:43:23 +00:00
description : Password (or bearer token) for a URL which require HTTP authentication.
2020-12-15 14:20:08 +00:00
example : myuser_pwd
2021-05-15 05:30:41 +00:00
selector :
text :
2021-06-28 18:43:23 +00:00
authentication :
name : Authentication method
description : Define which authentication method to use. Set to `digest` to use HTTP digest authentication, or `bearer_token` for OAuth 2.0 bearer token authentication. Defaults to `basic`.
default : digest
selector :
select :
options :
- "digest"
- "bearer_token"
2020-12-15 14:20:08 +00:00
target :
2021-05-15 05:30:41 +00:00
name : Target
2020-12-15 14:20:08 +00:00
description : An array of pre-authorized chat_ids to send the document to. If not present, first allowed chat_id is the default.
example : "[12345, 67890] or 12345"
2021-05-15 05:30:41 +00:00
selector :
object :
2020-12-15 14:20:08 +00:00
parse_mode :
2021-05-15 05:30:41 +00:00
name : Parse Mode
description : "Parser for the message text."
selector :
select :
options :
2021-06-28 18:43:23 +00:00
- "html"
- "markdown"
- "markdown2"
2020-12-15 14:20:08 +00:00
disable_notification :
2021-05-15 05:30:41 +00:00
name : Disable notification
2020-12-15 14:20:08 +00:00
description : Sends the message silently. iOS users and Web users will not receive a notification, Android users will receive a notification with no sound.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2020-12-15 14:20:08 +00:00
verify_ssl :
2021-05-15 05:30:41 +00:00
name : Verify SSL
2020-12-15 14:20:08 +00:00
description : Enable or disable SSL certificate verification. Set to false if you're downloading the file from a URL and you don't want to validate the SSL certificate of the server.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2020-12-15 14:20:08 +00:00
timeout :
2021-05-15 05:30:41 +00:00
name : Timeout
2020-12-15 14:20:08 +00:00
description : Timeout for send sticker. Will help with timeout errors (poor internet connection, etc)
2021-05-15 05:30:41 +00:00
selector :
number :
min : 1
max : 3600
unit_of_measurement : seconds
2020-12-15 14:20:08 +00:00
keyboard :
2021-05-15 05:30:41 +00:00
name : Keyboard
2020-12-15 14:20:08 +00:00
description : List of rows of commands, comma-separated, to make a custom keyboard.
example : '["/command1, /command2", "/command3"]'
2021-05-15 05:30:41 +00:00
selector :
object :
2020-12-15 14:20:08 +00:00
inline_keyboard :
2021-05-15 05:30:41 +00:00
name : Inline keyboard
2020-12-15 14:20:08 +00:00
description : List of rows of commands, comma-separated, to make a custom inline keyboard with buttons with associated callback data.
example : '["/button1, /button2", "/button3"] or [[["Text button1", "/button1"], ["Text button2", "/button2"]], [["Text button3", "/button3"]]]'
2021-05-15 05:30:41 +00:00
selector :
object :
2020-12-15 14:20:08 +00:00
2017-11-11 23:13:35 +00:00
send_video :
2021-05-15 05:30:41 +00:00
name : Send video
2017-11-11 23:13:35 +00:00
description : Send a video.
fields :
url :
2021-05-15 05:30:41 +00:00
name : URL
2017-11-11 23:13:35 +00:00
description : Remote path to a video.
2020-04-05 15:27:16 +00:00
example : "http://example.org/path/to/the/video.mp4"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-11-11 23:13:35 +00:00
file :
2021-05-15 05:30:41 +00:00
name : File
2020-12-15 14:20:08 +00:00
description : Local path to a video.
2020-04-05 15:27:16 +00:00
example : "/path/to/the/video.mp4"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-11-11 23:13:35 +00:00
caption :
2021-05-15 05:30:41 +00:00
name : Caption
2017-11-11 23:13:35 +00:00
description : The title of the video.
2020-04-05 15:27:16 +00:00
example : "My video"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-11-11 23:13:35 +00:00
username :
2021-05-15 05:30:41 +00:00
name : Username
2021-06-28 18:43:23 +00:00
description : Username for a URL which require HTTP authentication.
2017-11-11 23:13:35 +00:00
example : myuser
2021-05-15 05:30:41 +00:00
selector :
text :
2017-11-11 23:13:35 +00:00
password :
2021-05-15 05:30:41 +00:00
name : Password
2021-06-28 18:43:23 +00:00
description : Password (or bearer token) for a URL which require HTTP authentication.
2017-11-11 23:13:35 +00:00
example : myuser_pwd
2021-05-15 05:30:41 +00:00
selector :
text :
2021-06-28 18:43:23 +00:00
authentication :
name : Authentication method
description : Define which authentication method to use. Set to `digest` to use HTTP digest authentication, or `bearer_token` for OAuth 2.0 bearer token authentication. Defaults to `basic`.
default : digest
selector :
select :
options :
- "digest"
- "bearer_token"
2017-11-11 23:13:35 +00:00
target :
2021-05-15 05:30:41 +00:00
name : Target
2017-11-11 23:13:35 +00:00
description : An array of pre-authorized chat_ids to send the document to. If not present, first allowed chat_id is the default.
2020-04-05 15:27:16 +00:00
example : "[12345, 67890] or 12345"
2021-05-15 05:30:41 +00:00
selector :
object :
2020-12-15 14:20:08 +00:00
parse_mode :
2021-05-15 05:30:41 +00:00
name : Parse mode
description : "Parser for the message text."
selector :
select :
options :
2021-06-28 18:43:23 +00:00
- "html"
- "markdown"
- "markdown2"
2017-11-11 23:13:35 +00:00
disable_notification :
2021-05-15 05:30:41 +00:00
name : Disable notification
2017-11-11 23:13:35 +00:00
description : Sends the message silently. iOS users and Web users will not receive a notification, Android users will receive a notification with no sound.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2019-03-16 01:18:10 +00:00
verify_ssl :
2021-05-15 05:30:41 +00:00
name : Verify SSL
2019-03-16 01:18:10 +00:00
description : Enable or disable SSL certificate verification. Set to false if you're downloading the file from a URL and you don't want to validate the SSL certificate of the server.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2020-02-03 20:23:58 +00:00
timeout :
2021-05-15 05:30:41 +00:00
name : Timeout
2020-02-03 20:23:58 +00:00
description : Timeout for send video. Will help with timeout errors (poor internet connection, etc)
2021-05-15 05:30:41 +00:00
selector :
number :
min : 1
max : 3600
unit_of_measurement : seconds
2017-11-11 23:13:35 +00:00
keyboard :
2021-05-15 05:30:41 +00:00
name : Keyboard
2017-11-11 23:13:35 +00:00
description : List of rows of commands, comma-separated, to make a custom keyboard.
example : '["/command1, /command2", "/command3"]'
2021-05-15 05:30:41 +00:00
selector :
object :
2020-12-02 19:44:02 +00:00
inline_keyboard :
2021-05-15 05:30:41 +00:00
name : Inline keyboard
2020-12-02 19:44:02 +00:00
description : List of rows of commands, comma-separated, to make a custom inline keyboard with buttons with associated callback data.
example : '["/button1, /button2", "/button3"] or [[["Text button1", "/button1"], ["Text button2", "/button2"]], [["Text button3", "/button3"]]]'
2021-05-15 05:30:41 +00:00
selector :
object :
2020-12-02 19:44:02 +00:00
message_tag :
2021-05-15 05:30:41 +00:00
name : Message tag
2021-06-28 18:43:23 +00:00
description : "Tag for sent message. In telegram_sent event data: {{trigger.event.data.message_tag}}"
2020-12-02 19:44:02 +00:00
example : "msg_to_edit"
2021-05-15 05:30:41 +00:00
selector :
text :
2020-12-02 19:44:02 +00:00
send_voice :
2021-05-15 05:30:41 +00:00
name : Send voice
2020-12-02 19:44:02 +00:00
description : Send a voice message.
fields :
url :
2021-05-15 05:30:41 +00:00
name : URL
2020-12-02 19:44:02 +00:00
description : Remote path to a voice message.
example : "http://example.org/path/to/the/voice.opus"
2021-05-15 05:30:41 +00:00
selector :
text :
2020-12-02 19:44:02 +00:00
file :
2021-05-15 05:30:41 +00:00
name : File
2020-12-02 19:44:02 +00:00
description : Local path to a voice message.
example : "/path/to/the/voice.opus"
2021-05-15 05:30:41 +00:00
selector :
text :
2020-12-02 19:44:02 +00:00
caption :
2021-05-15 05:30:41 +00:00
name : Caption
2020-12-02 19:44:02 +00:00
description : The title of the voice message.
example : "My microphone recording"
2021-05-15 05:30:41 +00:00
selector :
text :
2020-12-02 19:44:02 +00:00
username :
2021-05-15 05:30:41 +00:00
name : Username
2021-06-28 18:43:23 +00:00
description : Username for a URL which require HTTP authentication.
2020-12-02 19:44:02 +00:00
example : myuser
2021-05-15 05:30:41 +00:00
selector :
text :
2020-12-02 19:44:02 +00:00
password :
2021-05-15 05:30:41 +00:00
name : Password
2021-06-28 18:43:23 +00:00
description : Password (or bearer token) for a URL which require HTTP authentication.
2020-12-02 19:44:02 +00:00
example : myuser_pwd
2021-05-15 05:30:41 +00:00
selector :
text :
2021-06-28 18:43:23 +00:00
authentication :
name : Authentication method
description : Define which authentication method to use. Set to `digest` to use HTTP digest authentication, or `bearer_token` for OAuth 2.0 bearer token authentication. Defaults to `basic`.
default : digest
selector :
select :
options :
- "digest"
- "bearer_token"
2020-12-02 19:44:02 +00:00
target :
2021-05-15 05:30:41 +00:00
name : Target
2020-12-02 19:44:02 +00:00
description : An array of pre-authorized chat_ids to send the document to. If not present, first allowed chat_id is the default.
example : "[12345, 67890] or 12345"
2021-05-15 05:30:41 +00:00
selector :
object :
2020-12-02 19:44:02 +00:00
disable_notification :
2021-05-15 05:30:41 +00:00
name : Disable notification
2020-12-02 19:44:02 +00:00
description : Sends the message silently. iOS users and Web users will not receive a notification, Android users will receive a notification with no sound.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2020-12-02 19:44:02 +00:00
verify_ssl :
2021-05-15 05:30:41 +00:00
name : Verify SSL
2020-12-02 19:44:02 +00:00
description : Enable or disable SSL certificate verification. Set to false if you're downloading the file from a URL and you don't want to validate the SSL certificate of the server.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2020-12-02 19:44:02 +00:00
timeout :
2021-05-15 05:30:41 +00:00
name : Timeout
2020-12-02 19:44:02 +00:00
description : Timeout for send voice. Will help with timeout errors (poor internet connection, etc)
2021-05-15 05:30:41 +00:00
selector :
number :
min : 1
max : 3600
unit_of_measurement : seconds
2020-12-02 19:44:02 +00:00
keyboard :
2021-05-15 05:30:41 +00:00
name : Keyboard
2020-12-02 19:44:02 +00:00
description : List of rows of commands, comma-separated, to make a custom keyboard.
example : '["/command1, /command2", "/command3"]'
2021-05-15 05:30:41 +00:00
selector :
object :
2017-11-11 23:13:35 +00:00
inline_keyboard :
2021-05-15 05:30:41 +00:00
name : Inline keyboard
2018-01-27 19:58:27 +00:00
description : List of rows of commands, comma-separated, to make a custom inline keyboard with buttons with associated callback data.
2017-05-10 04:42:17 +00:00
example : '["/button1, /button2", "/button3"] or [[["Text button1", "/button1"], ["Text button2", "/button2"]], [["Text button3", "/button3"]]]'
2021-05-15 05:30:41 +00:00
selector :
object :
2020-10-29 22:55:25 +00:00
message_tag :
2021-05-15 05:30:41 +00:00
name : Message tag
2021-06-28 18:43:23 +00:00
description : "Tag for sent message. In telegram_sent event data: {{trigger.event.data.message_tag}}"
2020-10-29 22:55:25 +00:00
example : "msg_to_edit"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
send_document :
2021-05-15 05:30:41 +00:00
name : Send document
2017-10-30 20:39:12 +00:00
description : Send a document.
2017-05-10 04:42:17 +00:00
fields :
url :
2021-05-15 05:30:41 +00:00
name : URL
2017-05-10 04:42:17 +00:00
description : Remote path to a document.
2020-04-05 15:27:16 +00:00
example : "http://example.org/path/to/the/document.odf"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
file :
2021-05-15 05:30:41 +00:00
name : File
2017-05-10 04:42:17 +00:00
description : Local path to a document.
2020-04-05 15:27:16 +00:00
example : "/tmp/whatever.odf"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
caption :
2021-05-15 05:30:41 +00:00
name : Caption
2017-05-10 04:42:17 +00:00
description : The title of the document.
example : Document Title xy
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
username :
2021-05-15 05:30:41 +00:00
name : Username
2021-06-28 18:43:23 +00:00
description : Username for a URL which require HTTP authentication.
2017-05-10 04:42:17 +00:00
example : myuser
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
password :
2021-05-15 05:30:41 +00:00
name : Password
2021-06-28 18:43:23 +00:00
description : Password (or bearer token) for a URL which require HTTP authentication.
2017-05-10 04:42:17 +00:00
example : myuser_pwd
2021-05-15 05:30:41 +00:00
selector :
text :
2021-06-28 18:43:23 +00:00
authentication :
name : Authentication method
description : Define which authentication method to use. Set to `digest` to use HTTP digest authentication, or `bearer_token` for OAuth 2.0 bearer token authentication. Defaults to `basic`.
default : digest
selector :
select :
options :
- "digest"
- "bearer_token"
2017-05-10 04:42:17 +00:00
target :
2021-05-15 05:30:41 +00:00
name : Target
2017-05-10 04:42:17 +00:00
description : An array of pre-authorized chat_ids to send the document to. If not present, first allowed chat_id is the default.
2020-04-05 15:27:16 +00:00
example : "[12345, 67890] or 12345"
2021-05-15 05:30:41 +00:00
selector :
object :
2020-12-15 14:20:08 +00:00
parse_mode :
2021-05-15 05:30:41 +00:00
name : Parse mode
description : "Parser for the message text."
selector :
select :
options :
2021-06-28 18:43:23 +00:00
- "html"
- "markdown"
- "markdown2"
2017-05-10 04:42:17 +00:00
disable_notification :
2021-05-15 05:30:41 +00:00
name : Disable notification
2017-05-10 04:42:17 +00:00
description : Sends the message silently. iOS users and Web users will not receive a notification, Android users will receive a notification with no sound.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2019-03-16 01:18:10 +00:00
verify_ssl :
2021-05-15 05:30:41 +00:00
name : Verify SSL
2019-03-16 01:18:10 +00:00
description : Enable or disable SSL certificate verification. Set to false if you're downloading the file from a URL and you don't want to validate the SSL certificate of the server.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2020-02-03 20:23:58 +00:00
timeout :
2021-05-15 05:30:41 +00:00
name : Timeout
2020-02-03 20:23:58 +00:00
description : Timeout for send document. Will help with timeout errors (poor internet connection, etc)
2021-05-15 05:30:41 +00:00
selector :
number :
min : 1
max : 3600
unit_of_measurement : seconds
2017-05-10 04:42:17 +00:00
keyboard :
2021-05-15 05:30:41 +00:00
name : Keyboard
2017-05-10 04:42:17 +00:00
description : List of rows of commands, comma-separated, to make a custom keyboard.
example : '["/command1, /command2", "/command3"]'
2021-05-15 05:30:41 +00:00
selector :
object :
2017-05-10 04:42:17 +00:00
inline_keyboard :
2021-05-15 05:30:41 +00:00
name : Inline keyboard
2018-01-27 19:58:27 +00:00
description : List of rows of commands, comma-separated, to make a custom inline keyboard with buttons with associated callback data.
2017-05-10 04:42:17 +00:00
example : '["/button1, /button2", "/button3"] or [[["Text button1", "/button1"], ["Text button2", "/button2"]], [["Text button3", "/button3"]]]'
2021-05-15 05:30:41 +00:00
selector :
object :
2020-10-29 22:55:25 +00:00
message_tag :
2021-05-15 05:30:41 +00:00
name : Message tag
2021-06-28 18:43:23 +00:00
description : "Tag for sent message. In telegram_sent event data: {{trigger.event.data.message_tag}}"
2020-10-29 22:55:25 +00:00
example : "msg_to_edit"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
send_location :
2021-05-15 05:30:41 +00:00
name : Send location
2017-10-30 20:39:12 +00:00
description : Send a location.
2017-05-10 04:42:17 +00:00
fields :
latitude :
2021-05-15 05:30:41 +00:00
name : Latitude
2017-05-10 04:42:17 +00:00
description : The latitude to send.
2021-05-15 05:30:41 +00:00
required : true
selector :
number :
min : -90
max : 90
step : 0.001
2021-06-28 18:43:23 +00:00
unit_of_measurement : "°"
2017-05-10 04:42:17 +00:00
longitude :
2021-05-15 05:30:41 +00:00
name : Longitude
2017-05-10 04:42:17 +00:00
description : The longitude to send.
2021-05-15 05:30:41 +00:00
required : true
selector :
number :
min : -180
max : 180
step : 0.001
2021-06-28 18:43:23 +00:00
unit_of_measurement : "°"
2017-05-10 04:42:17 +00:00
target :
2021-05-15 05:30:41 +00:00
name : Target
2017-05-10 04:42:17 +00:00
description : An array of pre-authorized chat_ids to send the location to. If not present, first allowed chat_id is the default.
2020-04-05 15:27:16 +00:00
example : "[12345, 67890] or 12345"
2021-05-15 05:30:41 +00:00
selector :
object :
2017-05-10 04:42:17 +00:00
disable_notification :
2021-05-15 05:30:41 +00:00
name : Disable notification
2017-05-10 04:42:17 +00:00
description : Sends the message silently. iOS users and Web users will not receive a notification, Android users will receive a notification with no sound.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2020-02-03 20:23:58 +00:00
timeout :
2021-05-15 05:30:41 +00:00
name : Timeout
2020-02-03 20:23:58 +00:00
description : Timeout for send photo. Will help with timeout errors (poor internet connection, etc)
2021-05-15 05:30:41 +00:00
selector :
number :
min : 1
max : 3600
unit_of_measurement : seconds
2017-05-10 04:42:17 +00:00
keyboard :
2021-05-15 05:30:41 +00:00
name : Keyboard
2017-05-10 04:42:17 +00:00
description : List of rows of commands, comma-separated, to make a custom keyboard.
example : '["/command1, /command2", "/command3"]'
2021-05-15 05:30:41 +00:00
selector :
object :
2017-05-10 04:42:17 +00:00
inline_keyboard :
2021-05-15 05:30:41 +00:00
name : Inline keyboard
2018-01-27 19:58:27 +00:00
description : List of rows of commands, comma-separated, to make a custom inline keyboard with buttons with associated callback data.
2017-05-10 04:42:17 +00:00
example : '["/button1, /button2", "/button3"] or [[["Text button1", "/button1"], ["Text button2", "/button2"]], [["Text button3", "/button3"]]]'
2021-05-15 05:30:41 +00:00
selector :
object :
2020-10-29 22:55:25 +00:00
message_tag :
2021-05-15 05:30:41 +00:00
name : Message tag
2021-06-28 18:43:23 +00:00
description : "Tag for sent message. In telegram_sent event data: {{trigger.event.data.message_tag}}"
2020-10-29 22:55:25 +00:00
example : "msg_to_edit"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
edit_message :
2021-05-15 05:30:41 +00:00
name : Edit message
2020-10-04 20:52:02 +00:00
description : Edit a previously sent message.
2017-05-10 04:42:17 +00:00
fields :
message_id :
2021-05-15 05:30:41 +00:00
name : Message ID
2017-05-10 04:42:17 +00:00
description : id of the message to edit.
2021-05-15 05:30:41 +00:00
required : true
2020-04-05 15:27:16 +00:00
example : "{{ trigger.event.data.message.message_id }}"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
chat_id :
2021-05-15 05:30:41 +00:00
name : Chat ID
2017-05-10 04:42:17 +00:00
description : The chat_id where to edit the message.
2021-05-15 05:30:41 +00:00
required : true
2017-05-10 04:42:17 +00:00
example : 12345
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
message :
2021-05-15 05:30:41 +00:00
name : Message
2017-05-10 04:42:17 +00:00
description : Message body of the notification.
example : The garage door has been open for 10 minutes.
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
title :
2021-05-15 05:30:41 +00:00
name : Title
2017-05-10 04:42:17 +00:00
description : Optional title for your notification. Will be composed as '%title\n%message'
2020-04-05 15:27:16 +00:00
example : "Your Garage Door Friend"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
parse_mode :
2021-05-15 05:30:41 +00:00
name : Parse mode
description : "Parser for the message text."
selector :
select :
options :
2021-06-28 18:43:23 +00:00
- "html"
- "markdown"
- "markdown2"
2017-05-10 04:42:17 +00:00
disable_web_page_preview :
2021-05-15 05:30:41 +00:00
name : Disable web page preview
2017-05-10 04:42:17 +00:00
description : Disables link previews for links in the message.
2021-05-15 05:30:41 +00:00
selector :
boolean :
2017-05-10 04:42:17 +00:00
inline_keyboard :
2021-05-15 05:30:41 +00:00
name : Inline keyboard
2018-01-27 19:58:27 +00:00
description : List of rows of commands, comma-separated, to make a custom inline keyboard with buttons with associated callback data.
2017-05-10 04:42:17 +00:00
example : '["/button1, /button2", "/button3"] or [[["Text button1", "/button1"], ["Text button2", "/button2"]], [["Text button3", "/button3"]]]'
2021-05-15 05:30:41 +00:00
selector :
object :
2017-05-10 04:42:17 +00:00
edit_caption :
2021-05-15 05:30:41 +00:00
name : Edit caption
2020-10-04 20:52:02 +00:00
description : Edit the caption of a previously sent message.
2017-05-10 04:42:17 +00:00
fields :
message_id :
2021-05-15 05:30:41 +00:00
name : Message ID
2017-05-10 04:42:17 +00:00
description : id of the message to edit.
2021-05-15 05:30:41 +00:00
required : true
2020-04-05 15:27:16 +00:00
example : "{{ trigger.event.data.message.message_id }}"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
chat_id :
2021-05-15 05:30:41 +00:00
name : Chat ID
2017-05-10 04:42:17 +00:00
description : The chat_id where to edit the caption.
2021-05-15 05:30:41 +00:00
required : true
2017-05-10 04:42:17 +00:00
example : 12345
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
caption :
2021-05-15 05:30:41 +00:00
name : Caption
2017-05-10 04:42:17 +00:00
description : Message body of the notification.
2021-05-15 05:30:41 +00:00
required : true
2017-05-10 04:42:17 +00:00
example : The garage door has been open for 10 minutes.
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
inline_keyboard :
2021-05-15 05:30:41 +00:00
name : Inline keyboard
2018-01-27 19:58:27 +00:00
description : List of rows of commands, comma-separated, to make a custom inline keyboard with buttons with associated callback data.
2017-05-10 04:42:17 +00:00
example : '["/button1, /button2", "/button3"] or [[["Text button1", "/button1"], ["Text button2", "/button2"]], [["Text button3", "/button3"]]]'
2021-05-15 05:30:41 +00:00
selector :
object :
2017-05-10 04:42:17 +00:00
edit_replymarkup :
2021-05-15 05:30:41 +00:00
name : Edit reply markup
2020-10-04 20:52:02 +00:00
description : Edit the inline keyboard of a previously sent message.
2017-05-10 04:42:17 +00:00
fields :
message_id :
2021-05-15 05:30:41 +00:00
name : Message ID
2017-05-10 04:42:17 +00:00
description : id of the message to edit.
2021-05-15 05:30:41 +00:00
required : true
2020-04-05 15:27:16 +00:00
example : "{{ trigger.event.data.message.message_id }}"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
chat_id :
2021-05-15 05:30:41 +00:00
name : Chat ID
2017-05-10 04:42:17 +00:00
description : The chat_id where to edit the reply_markup.
2021-05-15 05:30:41 +00:00
required : true
2017-05-10 04:42:17 +00:00
example : 12345
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
inline_keyboard :
2021-05-15 05:30:41 +00:00
name : Inline keyboard
2018-01-27 19:58:27 +00:00
description : List of rows of commands, comma-separated, to make a custom inline keyboard with buttons with associated callback data.
2021-05-15 05:30:41 +00:00
required : true
2017-05-10 04:42:17 +00:00
example : '["/button1, /button2", "/button3"] or [[["Text button1", "/button1"], ["Text button2", "/button2"]], [["Text button3", "/button3"]]]'
2021-05-15 05:30:41 +00:00
selector :
object :
2017-05-10 04:42:17 +00:00
answer_callback_query :
2021-05-15 05:30:41 +00:00
name : Answer callback query
2017-05-10 04:42:17 +00:00
description : Respond to a callback query originated by clicking on an online keyboard button. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert.
fields :
message :
2021-05-15 05:30:41 +00:00
name : Message
2017-05-10 04:42:17 +00:00
description : Unformatted text message body of the notification.
2021-05-15 05:30:41 +00:00
required : true
2017-05-10 04:42:17 +00:00
example : "OK, I'm listening"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
callback_query_id :
2021-05-15 05:30:41 +00:00
name : Callback query ID
2017-05-10 04:42:17 +00:00
description : Unique id of the callback response.
2021-05-15 05:30:41 +00:00
required : true
2020-04-05 15:27:16 +00:00
example : "{{ trigger.event.data.id }}"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-05-10 04:42:17 +00:00
show_alert :
2021-05-15 05:30:41 +00:00
name : Show alert
2017-05-10 04:42:17 +00:00
description : Show a permanent notification.
2021-05-15 05:30:41 +00:00
required : true
selector :
boolean :
2020-12-17 20:09:58 +00:00
timeout :
2021-05-15 05:30:41 +00:00
name : Timeout
2020-12-17 20:09:58 +00:00
description : Timeout for sending the answer. Will help with timeout errors (poor internet connection, etc)
2021-05-15 05:30:41 +00:00
selector :
number :
min : 1
max : 3600
unit_of_measurement : seconds
2017-06-22 13:03:11 +00:00
delete_message :
2021-05-15 05:30:41 +00:00
name : Delete message
2020-04-05 15:27:16 +00:00
description : Delete a previously sent message.
2017-06-22 13:03:11 +00:00
fields :
message_id :
2021-05-15 05:30:41 +00:00
name : Message ID
2017-06-22 13:03:11 +00:00
description : id of the message to delete.
2021-05-15 05:30:41 +00:00
required : true
2020-04-05 15:27:16 +00:00
example : "{{ trigger.event.data.message.message_id }}"
2021-05-15 05:30:41 +00:00
selector :
text :
2017-06-22 13:03:11 +00:00
chat_id :
2021-05-15 05:30:41 +00:00
name : Chat ID
2017-06-22 13:03:11 +00:00
description : The chat_id where to delete the message.
2021-05-15 05:30:41 +00:00
required : true
2017-06-22 13:03:11 +00:00
example : 12345
2021-05-15 05:30:41 +00:00
selector :
text :