by Arena Closer
Version 5 (July 5, 2022)
Download (1,115 downloads)
(68 blocks)
Example of the basic blocks youโd need to program your own Telegram Bot in Automate. Includes a detailed explanation of how to start.
When finished, it can run a certain sequence of blocks or a whole flow, and send the outcome back to you via Telegram.
๐๐ฒ๐๐๐ถ๐ป๐ด ๐๐๐ฎ๐ฟ๐๐ฒ๐ฑ
1. Create a bot in t.me/BotFather and obtain your bot token
2. Run the flow and paste your new bot token in the dialog
3. Send "/start" to your bot
4. The bot should reply with your Telegram ID
The row of โexpression trueโ blocks (starting from #76) are where you decide what the bot does, when a user sends a specific message, e.g. "hi", "random" or a sticker or photo. Try sending these things and see what happens.
Send /help or /explain to get a more detailed explanation of all the blocks and how to edit them according to your needs. Add your own blocks after #291 (label "/command"); right know that command doesn't do anything.
๐ก๐ผ๐๐ฒ
A bot programmed in Automate might not pick up all your messages because of the flows structure. With good WiFi speed, I find it picks up about 90%.
๐ข๐๐ต๐ฒ๐ฟ ๐ง๐ฒ๐น๐ฒ๐ด๐ฟ๐ฎ๐บ ๐ฏ๐ผ๐ ๐ณ๐น๐ผ๐๐
There are other ways to control your device from Telegram. Another flow of mine uses a dedicated bot that sends Google cloud messages to your device, which you can process in Automate: https://llamalab.com/automate/community/flows/41311.
๐จ๐ฝ๐ฑ๐ฎ๐๐ฒ๐
โข v1.0 (22 april 2020): release
โข v1.1: improved set-up
โข v1.2: added /explain command
โข v1.3: fixed flow stopping when sending "/command"
โข v1.4: added reply to a photo, other textual improvements
5 stars | 4 | |
4 stars | 0 | |
3 stars | 0 | |
2 stars | 0 | |
1 star | 1 | |
Reports | 0 |
Rate and review within the app in the Community section.