Visit Telegram at telegram.org/.
It is required:
You can configure your Telegram application in more 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 applications can be installed using instructions from the Telegram site and interconnected in the same way.
Type the URL telegram.me/BotFather to your browser to add the BotFather to your Telegram Desktop application.
You see a page where you need to click the 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 an username (e.g. IntegroBot99).
You receive a token in your Telegram Desktop application after you created the bot successfully. You can use this token in the 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 to your 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 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 its identifier.
You can use the module Get chats to obtain these IDs you can communicate to. 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 and Get chats.
The Telegram can handle multiple types of attachments:
For each document type, there is a special action for sending or forwarding.
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 a module to 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 in 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 as 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 identifiy your channel directly with channel ID.
You can obtain this ID from the communication to your channel.
First save this ID and the you can change the channel to be private.
It is not required. 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.