[2.x] Add Telegram notifications support #192
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added support for Telegram notifications using in your
Envoy.blade.php
:You should have a proper
<bot-id>
, the id of the bot you're using to send messages. You can get one using an existing Telegram Bot or creating a new one using BotFather.Take a look at Telegram Docs for additional information about Bot ids.
You should also use a valid
<chat-id>
, which is the id of the chat you want to send notifications. You can use the id of your own Telegram account if you want to send messages to yourself through the Bot, or you can use the id of a Telegram group (in which the Bot is invited / present).You can retrieve the id of your account or of a group in various way: a quick one is using @username_to_id_bot
The
message
andoptions
params are optional.Using
message
you can overwrite Envoy default message for a successful task.Using
options
you can send additional params to Telegram Api.Resolve Issue: #191
Sending to 2.x branch because I consider it a fully backward compatible minor feature.
Hope this can be useful. Thanks!