![]() ![]() Its template field is a template written according to the requirements of the Go text/template package, which generates a string at runtime that the ResultBuilder returns to Pipeline as its execution result, and Pipeline can jump based on this execution result. The diagram below shows the workflow of this bot. ![]() ![]() It is fine for you to use other vendors’ translation, speech recognition, or OCR APIs, but this will require you to adapt the examples in the later sections accordingly. Google Cloud’s Token and ensure that you can use Google Cloud’s Speech Recognize API and OCR (Image Annotation) API with this Token.AWS Access Key ID and Access Key Secret, and ensure that you can use the AWS translation API with this Access Key.Our bot will receive notifications of new messages through this Webhook. Create a Telegram bot by following this document, set its name (EaseTranslateBot is used in this article), write down its token, and set up a Webhook that points to the Easegress instance installed in the previous step.Install the latest version of Easegress according to this document and make sure that external applications can access the Easegress instance on at least one of ports 80, 88, 443, or 8443.Since the bot needs to receive Telegram message notifications and call third-party APIs, we must prepare the following in advance: ![]()
0 Comments
Leave a Reply. |