Description Usage Arguments Details Sound Telegram See Also
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.
1 2 3 |
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. |
Below are details of each of the notification types.
Notify by playing a sound
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.
The Telegram bot API at https://core.telegram.org/bots/api#authorizing-your-bot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.