Telegram Bot

Telegram Bot Programming

Since smartphones have been available, completely new possibilities have opened up for remote access to industrial processes. The interactions that are possible with the smartphone can be designed in a variety of convenient ways and go beyond simple text notifications.
With the Telegram Bot connection, the OPC Router enables the “Telegram” messenger to be linked to the industrial process (see Video). Authenticated users of the bot can receive messages, i.e. alarms, production messages, operating states, (push notifications), but can also actively trigger actions via the Telegram Bot. Application-specific queries and activities can be configured in the OPC Router, which are then called up from the smartphone via authenticated remote access.
You can easily create a convenient remote access to your production system and give the users the possibility for quick reactions in exceptional situations and easy access to production data.

Run a free test now
Telegram Bot

That’s how easy it is.

Telegram connection via drag & drop

Connecting your systems to a Telegram Bot is very simple and intuitive with the OPC Router via drag & drop. The screenshot shows an example of an application of the OPC Router and the Telegram Bot. Information from a machine is transferred to the OPC Router via MQTT. This information, combined with other data from an SQL database, is sent to the user as a Telegram message and is displayed on the respective smartphone.

Transmission of data from a MQTT message to a Telegram client. Here process data.
Message representation in the Telegram Client. Process data and status messages.

Bringing Industry 4.0 to life with Telegram Bots

  • Achieving more with coupled systems:
    In production, systems work with important data – data that is vital for the production value chain. Easy connectivity, which is established with the OPC Router, seaks to get the right data to the right people just in time, making production a value-rich experience by optimizing data transfers.
  • Industry 4.0 with Telegram Bots:
    Industry 4.0 relies on fast and automated data exchange. The Telegram Messenger plug-in involves people and ensures optimized information distribution through targeted and bidirectional messaging.
  • About OPC Router:
    With the OPC Router you can graphically network your systems. Numerous plug-ins make it a data hub in the industrial environment. It creates the connection from OPC to Telegram, from SQL to Telegram, from SAP to Telegram, from MQTT to Telegram and much more.Simple configuration, sophisticated monitoring and robustness characterize it.

Test the Telegram bot connection for free

The Telegram Plug-in allows you to communicate via the OPC Router and actively start queries. You can test the connection now without any obligation and for free.

Test Telegram connection for free

Telegram Bot Plug-in application examples

Telegram Bot
Plug-in Connections
MS SQL Server

Alarm system with Telegram

Together with the SQL Server plug-in of the OPC router (MS SQLMySQLOrcaleAccessODBC), effective alarm systems with smartphone connection can be easily configured. For this purpose, alarm messages, which are managed, generated and stored in the SQL database, are sent via the bot to the registered Telegram clients. The OPC Router can also offer the clients commands so that fault acknowledgements and comment functions can be designed. With the access of the Telegram plug-in to the SQL data, the Telegram client can also be offered queries, for example for access to detailed data on alarm messages.

Smart Factory

Create Telegram Bot without programming

Creating a Telegram Bot is done with just a few clicks. Filling the bot with life is possible by programming in C#, Python and other languages, but it’s a lot of work. With the OPC Router Telegram Bot Plug-in it is possible without complex programming and is realized by simple graphic configuration. Messages from other plug-ins (SAPOPCMQTT, etc.) can simply be sent to the bot and are then sent to the registered clients. Commands can be created by simply creating triggers in the OPC Router project. Create your telegram bot for your system in a few minutes.

Video: Creating Telegram Bots

Watch this video to see how to create a Telegram Bot with the OPC Router and how to send messages to clients and receive commands. With the Telegram Bot plug-in you can configure alarm and information applications yourself and even trigger actions in the OPC Router using the commands in the telegram.

Connecting Systems

What are transfer, trigger and browsing?

Transfer-Objects

The transfer object of the Telegram Messenger plug-in establishes the connection to the Telegram Bot. When a transfer is triggered, messages can be sent to selected recipients. Different formats are available for the messages.

Message formats

Text for classic text messages.
Image for sending images.
Audio for sound recording.
Video for video sequences.
Document for sending files.
Location to send location information displayed on the smartphone in the map app.
Contact for sending VCards.

Trigger

The Telegram Messenger plug-in has its own trigger. In connections this trigger can be used and gets a name. The name of the trigger becomes a command in the Telegram Bot. At the Telegram Client (Smartphone/Web/PC) this command can be called directly by the user. The call then causes the connection containing the trigger to be executed and the data transfers contained in it to take place.

The created triggers are listed to the user after calling the “/help” command:

Trigger der OPC Router Verbindungenwerden als Kommandos im Telegram Client dargestellt und können von hier aus direkt aufgerufen werden.

Browsing

The Telegram Messenger Plug-in does not have its own browsing.

Haven’t found the right information yet?

Here you will find more information on licensing options for our software as well as an overview of all available OPC Router Plug-ins. We also provide a free demo with which you can test a fully functional version of OPC Router.

Test free demo
Licensing
More Plug-ins