Telegram
The best messenger
Last updated
Was this helpful?
The best messenger
Last updated
Was this helpful?
is a messenger that allows for the creation of advanced chatbots. Let's explore how you can create a Telegram bot using Directual.
Open the messenger and go to the and type /newbot
The BotFather will give you an HPPT API secret token (the red one).
Go to Directual app, Plugins section → Telegram , insert the secret token you copied and click Install.
Go to Database section, Integrations/Telegram
folder (it appears automatically). Here you will find five data structures:
Incoming Telegram messages (system name TMessageIn
). Stores all messages that users have sent to the bot.
Outcoming Telegram messages (system name TMessageOut
). Stores all messages that the bot have sent to users.
Users Telegram (system name TUser
). Stores Users who have sent messages to the bot.
Chats Telegram (system name TChat
). Stores Chat-objects. That is the object which is used by scenario Telegram step as a 'destination'.
Keyboards Telegram (Legacy) (system name TKeyboard
).
TMessageIn
structureType something to the bot! Send a picture, a file, or location details. Then check the TMessageIn
structure.
Let's have a look at new objects which appeared in TMessageIn
!
The clue field for text messages is text
— it contains the message. Also there is information referring to images, files and locations.
The bot will behave as follows:
Also, a for receiving Telegram messages has been added, and a new Parse incoming telegram messages
has appeared (do not edit them!).
Create a new scenario, which triggers new objects in TMessageIn
structure. (See ):
Put the in scenario and configure it as follows (don't forget to publish and run the scenario):
Check out some