Connect Telegram
Create the bot
Section titled “Create the bot”- in Telegram, open @BotFather;
- send
/newbot; - choose the name and identifier requested;
- copy the token provided.
The token looks like 1234567890:ABCDefGHIJklmNoPQRstUvWxYZ. Never publish it.
Login to ELChat
Section titled “Login to ELChat”- Open Integrations hub > Telegram;
- Click Configure a Telegram bot;
- paste Bot Token;
- Click Connect.
ELChat checks the token with Telegram and automatically saves the webhook. Success shows the name and, if it exists, the name of the bot.
Verify and disconnect
Section titled “Verify and disconnect”Send a message to the bot or add it to the context, then check its reception. The disconnection removes the Telegram webhook at best then deletes the account from the site.
::caution[BotFather]
If the token is exposed, immediately revoke it with BotFather and then reconnect with the new token. :::
Example of test
Section titled “Example of test”After connecting the @maison_atlas_support_bot bot, send Bonjour, quels sont vos horaires ? from an account that is not the owner’s account. Check that the conversation appears in ELChat, then test a question covered by your knowledge and an out-of-range question.
The first message checks the webhook and reception. The two questions then check the quality of the answer and the fallback behaviour. Do not activate automatic responses before these checks.