ableev / Zabbix-in-Telegram

Zabbix Notifications with graphs in Telegram
MIT License
777 stars 232 forks source link

Can't send message to a group where my bot belongs to #206

Closed Zamana closed 3 years ago

Zamana commented 3 years ago

Hello!

I was able to install and configure zbxtg.py to send messages to my bot. Thanks!

The only issue I'm having for almost a day is that I can't send a message to a group where my bot belongs. Every time I got the following error: "zbxtg.py: User '-100999(...)999' needs to send some text bot in private"

As I'm able to send message to the group using the web method (https://api.telegram.org/bot/sendMessage?chat_id=&text=), but not by using zbxtg.py, I'm considering that the Telegram part is fine.

I already change the zbx_tg_tmp_dir variable to a folder where the zabbix user has read/write access, and already tried to use the zbxtg_group.py script (which is just a symlink, but that's ok).

Our Zabbix is the 4.4 version. The group is public.

Anybody can help me with this, please?

Thanks. Regards.

artemrogov commented 3 years ago

Такая же фигня) Да еще у меня и группа приватная))

Zamana commented 3 years ago

I decided to use another Telegram implementation for Zabbix and suceeded.

Thanks.