Visit Telegram at telegram.org/.
It is required to:
You can configure your Telegram application in many different environments. This help is related to the Telegram Desktop application.
This documentation is a brief extract from the original documentation. You can read core.telegram.org/bots/ for more details.
It is described here as an example of how to interconnect the Telegram Desktop application with the Integromat platform. Other Telegram applications can be installed using instructions from the Telegram site and be interconnected in the same way.
Type the URL telegram.me/BotFather into your browser to add the BotFather to your Telegram Desktop application.
You will see a page where you will need to click Run the application Telegram Desktop (Spustit aplikaci Telegram Desktop).
To create your bot, send a message from the desktop application to the BotFather. The message is: /newbot
Enter a bot name (e.g. IntegroBot99) and a username (e.g. IntegroBot99).
You will receive a token in your Telegram Desktop application after you have created the bot successfully. You can use this token in Integromat to communicate with your Telegram Desktop application.
Add your bot to your Telegram Desktop application to continue. Enter the URL, https://telegram.me/yourBotName into Internet Explorer.
You will be redirected to your Telegram Desktop application where you click on the START button.
Finally you will see your bot in your application. You can begin to send messages to your bot.
You can exchange messages in chats: via your bot or via created and linked channels. Messages can have attachments.
Each chat is identified with an identifier.
You can use the module Get chats to obtain the chat IDs that you wish to communicate with. Or you can use public links to channels.
To receive messages, you can use the modules: Watch updates or Get updates.
Note: Watch updates cannot be combined with the modules, Get updates or Get chats.
The Telegram Bot can handle multiple types of attachments:
For each document type, there is a special action for sending or forwarding.
To configure a scenario in Integromat, use the token from the BotFather to configure a connection to the Telegram Desktop application.
The scenario should start with the module, Watch updates. If an update is a message, you can reply to this message. If an update is a file, you can download and use the content of this file.
Write a message to your bot in your Telegram Desktop application and watch updates in Integromat. An example follows.
Watch the communication happen in the Telegram Desktop application.
You can send messages to your chats or to your channels. You can read messages from chats and channels if you are authorized to do this.
Join a channel or configure your own channel. And authorize your bot to access the channel.
Enter the name channel and click the CREATE button.
First try to create a public channel. Enter the public link of this channel and click the SAVE button. Click the SKIP button to continue.
Click the right mouse button and select View channel info.
Click on the administrator in the Members section.
And then click the ADD ADMINISTRATOR button to continue.
You will see the panel to add your bot.
Write the name of your bot and select your bot.
Finalize your effort by clicking the buttons: OK, SAVE and CLOSE.
Use your public link to identify the channel with your chat ID, e.g. @testIntegrobot.
Note: Public link does not have to be the same as your channel name.
If you need secure communication, you can identify your channel directly with a channel ID.
You can obtain this ID from the communication to your channel.
First save this ID and then you can change the channel to be private.
It is not required. You can sign in on the site, telegram.org/auth where you can change your public settings. You will receive a key in your desktop application to submit your login.
When sending messages inside a particular chat, avoid sending more than one message per second. We may allow short bursts that go over this limit, but eventually you'll begin receiving 429 errors.
If you're sending bulk notifications to multiple users, the API will not allow more than 30 messages per second or so. Consider spreading out notifications over large intervals of 8—12 hours for best results.
Also note that your bot will not be able to send more than 20 messages per minute to the same group.
One possible way to determine the ID of a private channel/group is as follows:
1. Create a new scenario.
2. Place Telegram Bot > Watch updates module in the scenario.
3. Configure the module by creating a webhook.
4. Execute the scenario.
5. Send a message to the private channel/group.
6. Verify the output of the module by clicking the bubble above the module.
7. Find the ID in the output bundle: