An open API service indexing awesome lists of open source software.

https://github.com/jehy/gotogram

Small app to sync messages from gotify to telegram
https://github.com/jehy/gotogram

gotify sync telegram telegrambot

Last synced: 3 months ago
JSON representation

Small app to sync messages from gotify to telegram

Awesome Lists containing this project

README

          

# Gotogram

![Test](https://github.com/jehy/gotogram/workflows/Test/badge.svg)
[![Known Vulnerabilities](https://snyk.io/test/github/jehy/gotogram/badge.svg)](https://snyk.io/test/github/jehy/gotogram)

Simple app to sync messages from gotify to telegram

## Install with docker compose

```yml
version: '3.9'

services:
gotogram:
image: ghcr.io/jehy/gotogram/gotogram:latest
container_name: gotogram
restart: unless-stopped
deploy:
resources:
limits:
cpus: '0.3'
memory: 200M
environment:
GOTIFY_WS_URL: wss://gotify.yourdomain.com/stream #websocket gotify url, should start from ws if http, and from wss if https. Should end with /stream.
GOTIFY_TOKEN: XXXXX
TELEGRAM_BOT_TOKEN: XXX:YYY
TELEGRAM_CHAT_ID: xxx
```

Set `TELEGRAM_BOT_TOKEN` value to token from [@BotFather](https://t.me/BotFather)

You can also use environment variable `DEBUG: true` to pring messages from gotify.

## Launch without docker

NodeJS 24+ required.

1. `git clone https://github.com/jehy/gotogram.git`
2. `cd gotogram`
3. `npm ci`
4. `GOTIFY_WS_URL=wss://gotify.domain.com/stream GOTIFY_TOKEN=XXX TELEGRAM_BOT_TOKEN=XXX:YYY TELEGRAM_CHAT_ID=ZZZ node src/index.ts`

## FAQ

**Why not gotify plugin?**
* I don't like the idea of recompiling plugun every time I update gotify
* Sometimes you need to put telegram client on another server from gotify
* I like putting different tasks on different docker containers
* Separate container should work fine without updates as long as gotify does not change it's websocket API

## See also

**Plugins:**

* https://github.com/anhbh310/gotify2telegram - seems abandoned, and I could not manage forks to work
* https://github.com/0xpetersatoshi/gotify-to-telegram - seems abandoned

**Standalone Apps:**

* https://github.com/Tiagura/gotigram - almost same as this one (gotogram), I didn't manage to google it until I wrote my own :) Even the title is simular. It's written in go, so it consumes less resources. Also it's more powerful, but more complex and may be less easy to set up.