/TelegramChatBot

A telegram chatbot powered by OpenAI GPT API

Primary LanguagePython

TelegramChatBot

  • This is a chatbot powered by OpenAI GPT API, which you can easily hypnotize into a specified character with simply one click. Using the latest 'system' parameter, It can effectively avoid forgetting the character settings during chatting. You can also conveniently manage and create new hypnosis spells. With a variety of powerful APIs, the chatbot has multimodal interaction capabilities including image display, voice input and output, and more. The API used include

  • If you want to deploy this bot, Don't forget to message @BotFather on Telegram to register your bot and receive its authentication token. Check https://core.telegram.org/bots#how-do-i-create-a-bot for more information.

  • Try it right now by @jokerController_bot on Telegram !

Setup

  1. Create a new virtual environment with python 3.10, here is an example with anaconda

    conda create -n ChatBot python=3.10
  2. Activate the virtual environment in anaconda

    activate ChatBot
  3. Make sure you are in the project path, install all requirement lib by

    pip install -r requirements.txt

    If the download process is too slow, Tsinghua Mirror source is recommended

    pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
  4. Install MySQL 5.7

State Machine


搞科研就是遇到问题摸大鱼啦~~