项目作者: zeshuaro

项目描述 :
Telegram Cognitive Bot
高级语言: Python
项目地址: git://github.com/zeshuaro/telegram_cognitive_bot.git
创建时间: 2017-07-25T02:42:38Z
项目社区:https://github.com/zeshuaro/telegram_cognitive_bot

开源协议:GNU General Public License v3.0

下载


Telegram Cognitive Bot

Telegram Bot that provides cognitive services

Connect to Bot

Stay tuned for updates and new releases on the Telegram Channel

Find the bot at Store Bot

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and
testing purposes

Prerequisites

Run the following command to install the required libraries:

  1. pip install -r requirements.txt

Below is a list of the main libraries that are included:

The bot uses Cognitive Services APIs provided my
Microsoft Azure.

Make a .env file and put your telegram token in there.

You will also need to include the tokens and URLs of the Computer Vision API, Emotion API and Bing Speech API.

If you want to use the webhook method to run the bot, also include APP_URL and PORT in the .env file. If you
want to use polling instead, do not include APP_URL in your .env file.

Below is an example:

  1. TELEGRAM_TOKEN=<telegram_token>
  2. COMP_VISION_TOKEN=<comp_vision_token>
  3. COMP_VISION_ANALYSIS_URL=<comp_vision_analysis_url>
  4. COMP_VISION_TEXT_URL=<comp_vision_text_url>
  5. EMOTION_TOKEN=<emotion_token>
  6. EMOTION_URL=<emotion_url>
  7. BING_SPEECH_TOKEN=<bing_speech_token>