Skip to content

Commit

Permalink
Merge branch 'master' of github.com:anhbh310/gotify2telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
anhbh310 committed Jul 13, 2024
2 parents ddb9e3e + 7ae4719 commit 301e9e9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,21 @@ This Gotify plugin forwards all received messages to Telegram through the Telegr
3. Follow instructions from step 2 in the shared object installation.
## Troubleshooting
1. When only the Gotify dashboard receives your message, but not Telegram:
If, when making the API call to get your bot's chat ID, no data is returned, you may need to change the bot's privacy settings.
- In the BotFather chat, list your created bots and select the respective bot for which you want to change the Group Privacy setting.
- Turn off the Group Privacy setting.
## Appendix
Mandatory secrets.
```(shell)
GOTIFY_HOST=ws://YOUR_GOTIFY_IP
GOTIFY_CLIENT_TOKEN=YOUR_CLIENT_TOKEN
TELEGRAM_CHAT_ID=YOUR_TELEGRAM_CHAT_ID
TELEGRAM_BOT_TOKEN=YOUR_TELEGRAM_BOT_TOKEN
GOTIFY_HOST=ws://YOUR_GOTIFY_IP (depending on your setup, "ws://localhost:80" will likely work by default)
GOTIFY_CLIENT_TOKEN=YOUR_CLIENT_TOKEN (create a new Client in Gotify and use the Token from there, or you can use an existing client)
TELEGRAM_CHAT_ID=YOUR_TELEGRAM_CHAT_ID (conversation ID from the Telegram API call above)
TELEGRAM_BOT_TOKEN=YOUR_TELEGRAM_BOT_TOKEN (API token provided by BotFather)
```

0 comments on commit 301e9e9

Please sign in to comment.