notification: Notifications

Description Usage Arguments Details Sound Telegram See Also

Description

Create a notification. This can be either through sending a Telegram message, an email, by printing a sound, or in its most basic form: printing a notification. A notification is sent through the matching notify function.

Usage

1
2
3
sound(sound_file = "extdata/chime.wav")

telegram(user, token = getToken())

Arguments

sound_file

Location of sound file to play

user

Addressee of the notification.

token

Character. The bot-specific secret used to access the Telegram API.

Details

Below are details of each of the notification types.

Sound

Notify by playing a sound

Telegram

There are two requirements before a notification can be send to a Telegram bot. First, the bot needs to be authorized, which should result in a token. Next, the target user needs to initiate a chat with the bot. If either requirement is not met, the function throws an error.

See Also

The Telegram bot API at https://core.telegram.org/bots/api#authorizing-your-bot


sjoerdvds/rudone documentation built on May 30, 2019, 12:05 a.m.