Skip to content

How to send message to the group chat

Ilya Ableev edited this page Jan 8, 2016 · 5 revisions

First steps

  1. Invite your bot to the group chat
  2. Mention you bot in the group (for example, @ZbxTgDevBot)

Test from command line

Run script from command line
./zbxtg.py "Zabbix in Telegram" "test" "$(echo -e "zbxtg;chat")"
The first argument is the name of group. In the third argument you need to put "zbxtg;chat" to indicate that you need to send this message to group chat.
In case of success you will receive test message in your group chat.

Web interface, add media for users and create actions

  1. Add new media for user with group name (if you don't have such user, you can create a new one)
  2. Create new action with "zbxtg;chat" in action's body
    You need to add this keyword in both messages (about the problem and about the recovery)

Clone this wiki locally