Telegram is a fast-growing messaging platform with over 500 million active users (as of 2022). Telegram chatbots are used widely for various use cases, and building an advanced chatbot for Telegram is extremely easy with Activechat.
The most powerful features of Telegram are:
Privacy. Messages are heavily encrypted and can self-destruct after specific periods of time.
Speed. Telegram delivers messages faster than any other messenger platform.
Power. Telegram has no limits in terms of the size of your media and chats.
Security. Telegram keeps all messages safe from external attackers.
As of Jan 2022, Telegram does not support galleries. Keep that in mind when designing your conversations.
Another thing to keep in mind: at the moment ActiveChat does not support channels or group chats. The functionality is planned to be added in the future, however, there is no specific ETA for that.
Check the articles below for some specific information on Telegram chatbots.
Connecting your agent to Telegram
To create a new Telegram chatbot to be used with Activechat, you will need to use the @BotFather. It’s a system chatbot within Telegram, built specifically to maintain customers' chatbots.
Getting chatbot token from @BotFather
Follow these simple steps to create a new Telegram chatbot and connect it to Activechat:
You can use commands to trigger specific skills in your chatbot. Just go back to @BotFather on Telegram and type “/setcommands”. The bot will ask you which of your chatbots to use, and then prompt you to enter the list of commands.
Each command will trigger a chatbot event with the same name in Activechat.
Type your commands (one per line) with simple descriptions. Please keep in mind that all commands should be contained within a single message, so use “Ctrl+Enter” (or “Cmd+Enter on Mac”) to separate lines, and hit “Send” only after you’ve entered all commands.
Adding a list of commands to your chatbot on Telegram
Now if you go to your new chatbot on Telegram and hit “/”, it will display the list of commands with descriptions, and once you click a command, an event with the same name will be sent to your chatbot.
Telegram chatbot commands triggered with “/"
In this example, the “/about” command will send “about” event (that will trigger “about” skill in Activechat), “/contact” will send “contact” event, etc.