Integration: Telegram

A Telegram Bot That Watches Your Wall

Make a bot with BotFather, give qKVM the bot and the chat it writes to, and that chat hears when a machine goes offline, loses its picture or has its login rejected, and when it is back.

What the Chat Hears

Your own bot

A bot from BotFather writes as itself. Its token is stored encrypted with the saved passwords and never shown again.

A chat by number or name

A group or a channel by its number, -100 and its digits, or a channel by its @name.

A rack down, one message

Machines that go together are one message: thirty by name, then how many more.

Telegram's pace

Three seconds at least between two messages to one chat, within what Telegram allows.

Set It Up

  1. BotFatherMake a bot, and keep the token it gives you.
  2. The chatIts number, -100... for a group or a channel, or a channel's @name.
  3. In qKVMSettings, Alerts, Add destination, Telegram: the bot's token and the chat.
  4. Send testTelegram's own words, such as chat not found, with the token taken out.

Good to Know

Another chat
Edited to another chat, the destination starts with nothing known: the new chat is not told "back to normal" of a trouble it never heard, and what waited for the old one is dropped.
How serious
Critical only (offline and faults), errors and worse, or warnings and worse, which adds a lost picture and an unchanged screen.
Quiet hours
Every day or on the days ticked, by this wall's clock; a container's is often UTC, so set TZ. A window past midnight belongs to the day it starts on.
Reminders
Off by default. Switched on, the chat is told again, every 30 minutes up to once a day, of a machine still in trouble, and for how long.