Steps for Telegram Integration
Prerequisites
Create a bot
Access Telegram.
Create an account and make sure Telegram is installed on your device.
Create a bot in Telegram using BotFather by following these steps:
a) Start a new conversation with BotFather.
b) Send the
/newbot
command to create a new bot.c) When prompted, write a name for the bot.
d) Assign a unique username to the bot. Keep in mind that the name must end with the word "bot" (case insensitive).
e) Copy and save the Telegram bot access token, as you will need it later.
Configuration in Lynn
With your Telegram account and bot created, proceed to configure Lynn by filling out the following fields:
Telegram Bot Access Token (TELEGRAM_ACCESSTOKEN): Enter the access token provided by Telegram when the bot was created.
Telegram Bot Name (TELEGRAM_BOTNAME): Enter the name of the bot created in Telegram. Remember, it must include the '_bot' suffix.
Configured timeout for detecting inactivity and closing the interaction. Maximum 7200 seconds (2 hours) (TIMEOUT_SECONDS): Specify the wait time (in seconds) during which the interaction will remain available before being considered inactive.
With this configuration, you will successfully integrate Lynn with Telegram.