This node.js example connector makes a Teneo bot available on Telegram Messenger. This guide will take you through the steps of deploying the connector to respond to events sent by Teneo.
The source code for this project can be found on Github.
Telegram app should already be installed and running with an active account on your device. For development, the desktop version of the app is recommended.
Your bot needs to be published and you need to know the engine URL.
HTTP_API_TOKEN. Store it somewhere safe, and copy it for the following steps.
git clone https://github.com/artificialsolutions/tie-api-example-telegram.git
.envfile in the folder where you stored the source, and add values for TENEO_ENGINE_URL and HTTP_API_TOKEN:
TENEO_ENGINE_URL=<your_engine_url> HTTP_API_TOKEN=<the value obtained in the previous section>
Go back to Telegram and add the bot's
user_name you created previously, as a contact.
That's it! Your bot should now be available in Telegram and responding to messages that are sent to it.
Was this page helpful?