PubSub based notification service in Telegram.
- run following composer command
composer create-project innoractive/telegram-notifier --repository "{\"type\":\"vcs\",\"url\":\"git@github.com:Innoractive/telegram-notifier.git\"}"-
update telegram credential in
.envfile -
run
php install.phpto register telegram webhook
-
open telegram app
-
add your telegram bot into telegram group
-
run telegram command
/getChatIdto get chat id
- forward email to
http://path.to/forward.php
- send email to
chat-id@your-domain.com - chat-id with negative symbol "-" will replace with character "t"
- system will convert email to telegram message
- system will auto detect
title labelfromkeywordin email subject / email body - if multiple keyword in subject / body, system will use icon with higher priority
- eg. following email contain keyword "error" & "info" will use
erroricon instead ofinfoicon
subject:
error in api.php
body:
info => line 39 undefined class API
| Icon | Keyword | Priority |
|---|---|---|
| 🚫 | error, danger, failed |
10 |
warning, unexpected |
9 | |
| ✅ | success, succeeded, passed |
8 |
| ℹ️ | info, recovered |
7 |
| 🧪 | test |
6 |
| ✉️ | default |
0 |
- When no keyword detected, will use default icon