-
-
Notifications
You must be signed in to change notification settings - Fork 421
Notify_telegram
- Source: https://telegram.org/
- Icon Support: No
- Message Format: Text
- Message Limit: 4096 Characters per message
Telegram is slightly more complicated then some of the other notification services, so here is quick breakdown of what you need to know and do in order to send Notifications through it using this tool:
First off, Telegram notifications require you need to first access https://api.telegram.org and create a bot. After creating te bot, you will need to acquire it's Token Identifier (bot_token).
To do this you will be required in a chat with the BotFather to type: /newbot
. Answer the questions it asks after doing this (which get the name of it, etc). When you've completed this step, you will be provided an bot_token that looks something like this: 123456789:alphanumeric_characters
.
You will need to /start
the bot to get it going for good. You will not be able to send notifications through it until this final step is done.
Valid are as follows:
- tgram://{bot_token}/{chat_id}/
- tgram://{bot_token}/{chat_id1}/{chat_id2}/{chat_id3}/
This can also be written like so:
- tgram://{chat_id}@{bot_token}/
Variable | Required | Description |
---|---|---|
bot_token | Yes | The token that identifies the bot you created through the BotFather |
chat_id | Yes | Identify the users you want your bot to deliver your notifications to. You must specify at least 1 chat_id. If you do not specify a chat_id, the notification script will attempt to detect the bot owner's (you) chat_id and use that. |
Send a telegram notification to lead2gold:
# Assuming our {bot_token} is 123456789:abcdefg_hijklmnop
notify tgram:///123456789:abcdefg_hijklmnop/lead2gold/