Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Telegram is a messaging service for iOS, Android and other devices. A great advantage of Telegram is that it provides an open web service which can be used to send Telegram messages via software. More information about Telegram can be found here – the API documentation is available here

To send Telegram messages for the NETx BMS Server, the so called Bot API can be used. This is used to communicate with so called Telegram bots. Bots are special accounts that do not require a phone number. This tutorial explains how a Telegram Bot can be created and how the NETx BMS Server can send messages to this bot.

Info

In order to use this functionality, it is assumed that you have installed the Telegram app on your smart phone. The Telegram app can be download from Apple iTunes or Google Play Store. In addition, it is assumed to you have created a Telegram account. More information about Telegram can be found here.

...

To talk with the BotFather, open your telegram app, click on the search button and search for "BotFather". Add the BotFather to your contact list and open a chat with him.

 

Image Removed

 

Image RemovedWithin the chat you will find an overview of available commands. Telegram commands are starting with a slash ("/"). To create a new bot, enter the following command:

Code Block
/newbot

For creating a bot, you have to define a name and username. Both have to end with "_bot". 

 

Image Added

Now you have created a new bot. To access a bot via the HTTP API, an authentication token is necessary. This token has to be send within the URL of each HTTP request. The token for your bot is shown within the chat after having created the bot. Write down the token – we will need it within the NETx BMS Server configuration afterwards.

Image Added