Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zeshuaro/telegram_cognitive_bot
Telegram Cognitive Bot
https://github.com/zeshuaro/telegram_cognitive_bot
bot cognitive-services python-telegram-bot telegram
Last synced: 19 days ago
JSON representation
Telegram Cognitive Bot
- Host: GitHub
- URL: https://github.com/zeshuaro/telegram_cognitive_bot
- Owner: zeshuaro
- License: gpl-3.0
- Created: 2017-07-25T02:42:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T05:41:30.000Z (8 months ago)
- Last Synced: 2024-10-28T09:00:17.373Z (2 months ago)
- Topics: bot, cognitive-services, python-telegram-bot, telegram
- Language: Python
- Size: 480 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Telegram Cognitive Bot
Telegram Bot that provides cognitive services
Connect to [Bot](https://t.me/cognitivebot)
Stay tuned for updates and new releases on the [Telegram Channel](https://t.me/cognitivebotdev)
Find the bot at [Store Bot](https://storebot.me/bot/cognitivebot)
## 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:
```
pip install -r requirements.txt
```Below is a list of the main libraries that are included:
* [Python Telegram Bot](https://github.com/python-telegram-bot/python-telegram-bot)
* [Pillow](https://github.com/python-pillow/Pillow)
* [SpeechRecognition](https://github.com/Uberi/speech_recognition)The bot uses [Cognitive Services APIs](https://azure.microsoft.com/en-au/services/cognitive-services/) 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:
```
TELEGRAM_TOKEN=
COMP_VISION_TOKEN=
COMP_VISION_ANALYSIS_URL=
COMP_VISION_TEXT_URL=
EMOTION_TOKEN=
EMOTION_URL=
BING_SPEECH_TOKEN=
```