Skip to content

How to send message to the group chat

Ilya Ableev edited this page Dec 20, 2017 · 5 revisions

PROBLEMS

Q: My bot is not answering in the group chat, what should I do?

A: Mention your bot: "/start@MyBot" in the group chat, test in command line

Q: It is still not answering, why is that?

A: Try to kick it and invite again, sometimes telegram platform is not working correctly with that


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_group.py "Zabbix in Telegram" "test" "test"
The first argument is the name of group. 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 type
2. Add new media for user with group name (if you don't have such user, you can create a new one)
3. Create new action or add new sending rule to existing