Added v0.5
Send a telegram notification - such as to alert someone when a recipe is finished or if it fails.
See docs for how to setup and get required keys.
run:
on_failure:
- notification.telegram:
bot_token: 1234567890:AAA-a0a...
chat_id: 1234567890
title: title
body: body
from wrangles.connectors.notification import telegram
telegram.run(
bot_token = '1234567890:AAA-a0a...',
chat_id = '1234567890',
title = 'title',
body = 'body'
)
Parameter | Required | Data Type | Notes |
---|---|---|---|
bot_token | ✓ | str | The token for the bot. See docs. |
chat_id | ✓ | str | The ID of the chat. See docs. |
title | ✓ | str | The title of the notification. |
body | ✓ | str | The body of the notification. |
if | str | A condition that will determine whether the action runs or not as a whole. |