logo

How to create Telegram bot and use it with HAProxy-WI

About Telegram

Telegram is a freeware, cross-platform cloud-based instant messaging, video calling, and VoIP service. It was initially launched for iOS on 14 August 2013 in Russia, and is currently based in Dubai. Official Telegram client apps are available for Android, iOS, Windows, macOS and Linux, as well as for the now-discontinued Windows Phone. There is also an official web interface and numerous unofficial clients. All of Telegram's official apps are open source.

Telegram provides end-to-end encrypted calls and optional end-to-end encrypted "secret" chats between two online users on smartphone clients, whereas cloud chats use client-server/ server-client encryption. Users can send text and voice messages, animated stickers, make voice and video calls, and share an unlimited number of images, documents (2GB per file), user locations, contacts, and music. As of April 2020, Telegram reached 400 million monthly active users.

Go to UP

About Checker

Checker monitors HAProxy and Nginx services and HAProxy backends. If some backend or HAProxy/Nginx service is down, Checker will alert via Telegram(Slack support will implement soon. See changelog ), real-time alerting via HAProxy-WI and keep incident history.

Go to UP

Create Telegram bot

To create a chatbot on Telegram, you need to contact the BotFather, which is essentially a bot used to create other bots.

The command you need is /newbot which leads to the following steps to create your bot:

add_group
Go to UP

Use Telegram bot with HAProxy-WI


Read how to install Checkerhere

After you got the Token from BotFather you should create a channel. Add the bot as an administrator to the channel.

Note: Channel must be a public

Add your Token and channel name on the "Checker" tab:

HAProxy-WI checker

In the end activate Checker for services:

HAProxy-WI checker
Go to UP

Checker history

Also after enabling checker for servers HAProxy-WI starts to collect incident history. It can help in future debugging:

HAProxy-WI checker history
Go to UP

Was this article helpful?

Yes, thanks!
Not really
Go back