anhbh310 / gotify2telegram

MIT License
28 stars 4 forks source link

Tutorial #9

Open RensWillink opened 4 weeks ago

RensWillink commented 4 weeks ago

Hi,

I have gotify running in an lxc on proxmox (helper scripts) and im trying to install the plugin, is there a tutorial i can follow? the installation steps are to cryptic for my experiance level.

Thank you in advance !

RensWillink commented 3 weeks ago

got it installed, receiving messages in gotify however not in telegram, followed the steps including setting the group privacy of the bot to off, where are the logs located ? the only thing i see right now is that it says never for the client i created for the plugin

RensWillink commented 3 weeks ago

alright getting closer:

Oct 29 08:32:42 Gotify gotify-linux-amd64[146]: Cannot connect to websocket: malformed ws or wss URL

ss -lnp | grep gotify gives me:

tcp LISTEN 0 4096 :80 :* users:(("gotify-linux-am",pid=146,fd=7))

i have tried various urls, my gotify runs on an lxc in proxmox ....dont know if that relevant

RensWillink commented 3 weeks ago

also as soon as i enable the plugin in gotify the cpu goes up to 100%

anhbh310 commented 3 weeks ago

Hi @RensWillink,

I've just re-created your setup (I guess you used this lxc script). It’s strange because the issue only appears in the LXC environment. I figured out that the plugin receives messages from the Gotify client, but it cannot forward them to the Telegram bot API. Just wanted to let you know that I'm working on a solution.

Thanks for your consideration!

RensWillink commented 3 weeks ago

that is great to hear, thank you for your time !! (yes i used that script)

RensWillink commented 3 weeks ago

i dont know if it's possible, it would be great if we can use the app to forward to groups.....

anhbh310 commented 3 weeks ago

Here’s a revised version for clarity and correct grammar:

Hi @RensWillink,

I've added a logger to the plugin. Could you please try the new release v1.1.2? Run it and let me know if there’s anything new.

Regarding the issue with LXC, it was my mistake—I had set the chat ID variable incorrectly. After fixing the environment variables, everything works fine.

And if you want to send notifications from Gotify to a group chat, just follow these two steps:

I tested it, and it runs perfectly.

RensWillink commented 3 weeks ago

Great! Thank you for looking in to it! I will test it in the coming days and report back here, thanks again.

RensWillink commented 2 weeks ago

Message arrives in gotify however doesnt gets forwarded to telegram. (bot works with other systems) cpu goes to 100% when plugin is enabled.

ZanardiZZ commented 2 weeks ago

Can confirm I have the same issue as RensWillink, even the 100% CPU usage.

anhbh310 commented 1 week ago

Hi @RensWillink, could you show me the running log by using the command journalctl -f -u gotify.service?