Telegram: Advanced Techniques
Last updated
Was this helpful?
Last updated
Was this helpful?
Feel free to use all the features of the in the .
Telegram bots have /commands
, so add them in the BotFather (using /setcommands
) and create one scenario which triggers new objects from TMessageIn
, and if there is no system commands in text
field, the scenario sends an object to the Router scenario.
The Router scenario (which is not triggered by events but invoked) is routing messages, based on the value of the field context
in TChat
object.
Condition step (checking context
) looks like:
Call Telegram API-method getFile
using Telegram step this way:
Then, save to a field temporary URL: https://api.telegram.org/file/bot_BOT_TOKEN_/{{API_response.file_path}}
, where _BOT_TOKEN_
is token of your bot.
Use internal SDK method (it can be applied in both and in )