Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 881 Bytes

readme.md

File metadata and controls

26 lines (21 loc) · 881 Bytes

A simple telegram bot with openAI integration. Made with python and Flask(Quart).

This application was created along with an article: https://medium.com/hyperskill/telegram-conversation-summarizer-bot-with-chatgpt-and-flask-quart-bb2e19884c To learn more about developing web applications with Flask, check Hyperskill’s Flask track.

Getting started

  • install requirements
$ python -m pip install -r requirements.txt
  • export environment variables
$ export TELEGRAM_TOKEN=YouRTeleGRam:toKenSTrinG
$ export OPENAI_TOKEN=yOurOpenAItoKeNStrIng
$ export TELEGRAM_CORE_API_ID=YouRTeleGRamApiID
$ export TELEGRAM_CORE_API_HASH=YouRTeleGRamApiHaSH

optional: set application port (as TELEGRAM_BOT_PORT)

python main.py