[Connections] Telegram

Q100092: [Connections] Telegram

The Telegram Connection is a definition which tells a module, how to connect to and communicate with a Telegram account and channel. Connections can either be entered directly into the parameter in the module, or can be centrally managed through the global connections tool. If you will be using the same connection in different modules, it is much easier to manage the connection information by creating a global connection. Whether you use a locally defined value in each module, or use the global definitions for your Telegram based modules, the format of the connection value is the same for both.

If you use the global connection manager, you will see that as soon as you create a new entry, it will provide you a template for starting your Telegram Connection definition. It would look like the example below.

Token=<token>;Channel=<channel>;

We see from this that the connection needs values for two different settings. It needs the value for the Token and the Channel setting. The Channel setting is the channel that should be used by default. You have the option to override this and use a different channel in the [Telegram] Send Message module. To get the values for these go to the Telegram website and login to your account and follow the steps below.

From Telegram:

Create "Bot" and get a token:

  • In Search enter "botfather"
  • In BotFather:
  • Enter /newbot
  • Send a name and username
  • Copy the token in the "Done!" message
  • Enter /setprivacy
  • Enter @
  • Enter enable

Apply "Bot" to a group:

  • Click on a group
  • Click Add Member icon
  • Enter @
  • Click Add

To get a channel ID:

  • Click on a group
  • Add @RawDataBot to members
  • Copy "chat" section "id" (typically a negative number)
  • Remove Telegram Bot Row from members

When you fill in your information, it should look something like the example below. Note that the values in the example below are not real/valid information and will not work. They are only for illustrative purposes.

Token=1234567890:ABCdef123ghi456JKL789mno123PQR456st;Channel=987654321;
 
Last Updated:
7/20/2023 11:15:50 AM
JobServer.NET Knowledgebase © 2025