You want ChatGPT with voice message support on your mobile phone? Then check this out!
- Simple chatbot version that can be easily copied and pasted
- Chatbot with voice message support and customizable personality
- Python v3
- Text Editor like Visual Studio Code
- OpenAI API key
- Telegram app
- Python script (provided in this repository)
- Download the Telegram app and search for "Botfather".
- Follow the instructions to create a new bot account. Choose a name for your bot.
- Copy the API key provided by Botfather and save it on your computer.
- Obtain an OpenAI API key by signing up for an account on their website.
- Install Python v3 on your system, if not already installed.
- To run it 24/7 you can host the script. For example on https://www.pythonanywhere.com/ for free
-
Clone this repository and open the Python script in Visual Studio Code.
-
pip install -r python-telegram-bot==13.0 openai moviepy
-
Replace the placeholder values for the OpenAI API key and the Telegram API key with your respective keys.
-
Save the script and run it to start your chatbot.
The provided Python script connects your custom GPT chatbot with the Telegram and Whisper APIs. It handles message processing, including text and voice input, and manages the chatbot's memory and personality.
This script was originally created by The AI Advantage. Leave a like on his video and subscribe to his channel.