MCPcopy Index your code
hub / github.com/anhbh310/gotify2telegram

github.com/anhbh310/gotify2telegram @v1.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.3.0 ↗ · + Follow
12 symbols 20 edges 1 files 5 documented · 42%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Gotify 2 Telegram

This Gotify plugin forwards all received messages to Telegram through the Telegram bot.

Prerequisite

  • A Telegram bot, bot token, and chat ID from bot conversation. You can get that information by following this blog.
  • Golang, Docker, wget (If you want to build the binary from source).

Installation

  • By shared object

    1. Get the compatible shared object from release.

    2. Put it into Gotify plugin folder.

    3. Set secrets via environment variables (List of mandatory secrets is in Appendix).

    4. Restart gotify.

  • Build from source

    1. Change GOTIFY_VERSION in Makefile.

    2. Build the binary.

    make build

    1. 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 (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)

Core symbols most depended-on inside this repo

connect_websocket
called by 2
plugin.go
send_msg_to_telegram
called by 1
plugin.go
get_websocket_msg
called by 1
plugin.go
GetGotifyPluginInfo
called by 0
plugin.go
SetMessageHandler
called by 0
plugin.go
Enable
called by 0
plugin.go
Disable
called by 0
plugin.go
NewGotifyPluginInstance
called by 0
plugin.go

Shape

Method 6
Function 3
Struct 3

Languages

Go100%

Modules by API surface

plugin.go12 symbols

For agents

$ claude mcp add gotify2telegram \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact