Hosting SIML Project on Telegram
From version 1.54, Syn Bot Studio comes with support for hosting the current SIML Project on Telegram. This enables developers to test the response and hint mechanism before actually going ahead and deploying the project on a server platform.
For deploying an SIML project on Telegram a developer needs to acquire the Telegram Bot Access Token of their Bot.
Creating a Telegram Bot
To obtain a Telegram Bot Access Token
- Download Telegram to your Desktop or Mobile from Telegram
- Search for BotFather and then click on Start.
- Type /newbot
- Enter a display name for your bot. In our example we've used Maya
- After you've specified the bot name, enter a unique Bot name. You can use _ as separators. For this tutorial we've used the name My_VA_Bot as the Bot name.
- After that you'll be presented with the HTTP Access Token.
- Copy the HTTP API access token as shown below.
You have now successfully created a Telegram Bot and acquired its Access Token.
Once the Access Token is obtained:
- Select Project from in Menu, choose Host and select Telegram.
- Enter the Access Token and press Connect.
Everytime the developer Builds the SIML Project the Bot's knowledge-base will be updated on Telegram as well.
Note
The SIML Project is hosted on Telegram using the TelegramAssistant
class found in Syn.Bot.Assistant
library. Hence, all interaction mechanism designed within the TelegramAssistant
will reflect in your Telegram Bot.
Performance
It came to our notice that on low speed internet connections there was a delay in delivering the response to the Telegram Bot via Syn Bot Studio. Thus we conclude that the response time of your Bot in Telegram is directly proportional to your internet speed.
We've however tested the same feature in our Servers and have found no issues in the response time of the Bot. The average response time in our servers was < 3 seconds. So developers can be certain that if their project is hosted on a better internet connection the responses would be delivered on time.
External Hosting
Developers who wish to host the finaly SIML Project on Telegram in an external application can use the Syn.Bot.Assistant
library available in NuGet.