Skip to main content

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.

Tabset

Run​

Recipe​

run:
on_failure:
- notification.telegram:
bot_token: 1234567890:AAA-a0a...
chat_id: 1234567890
title: title
body: body

Function​

from wrangles.connectors.notification import telegram
telegram.run(
bot_token = '1234567890:AAA-a0a...',
chat_id = '1234567890',
title = 'title',
body = 'body'
)

Parameters​

ParameterRequiredData TypeNotes
bot_token✓strThe token for the bot. See docs.
chat_id✓strThe ID of the chat. See docs.
title✓strThe title of the notification.
body✓strThe body of the notification.
ifstrA condition that will determine whether the action runs or not as a whole.