Introducing the ChatGPT Telegram Bot
The ChatGPT Telegram Bot is a dynamic addition to the world of chat applications, offering users the ability to communicate directly through Telegram with an AI that leverages the power of the OpenAI ChatGPT API. Launched on March 1, 2023, and built on the versatile Python framework known as python-telegram-bot, this bot is designed to enhance your messaging experience with groundbreaking features and a focus on privacy.
Exciting Updates and Features
Version 1.4 Essential Update Notice
With the release of version 1.4, changes in the configuration format have been made, which aren't compatible with earlier versions. Users are advised to back up their old configuration files and create new ones for seamless integration with the updates.
Recent News
- Microsoft Azure Text-to-Speech (TTS): Now you can enjoy audio replies from the bot, using Azure's cutting-edge TTS capabilities.
- Customizable Creativity: The ChatGPT temperature can be configured to adjust the creativity and spontaneity of the bot's responses to suit your personal preferences.
- Enhanced Logging System: Debugging is now more efficient with a newly improved logging system.
- Model Selection: Users can now select their preferred AI model to power the bot, including GPT-4 if available.
Functional Overview
The ChatGPT Telegram Bot is like having an AI consultant on your device. You can personalize the bot’s character, and request image generation via DALL·E, or voice recognition using Whisper. Additionally, the bot ensures privacy by only interacting with directed requests in group chats, ensuring no other messages are accessed or stored.
Key Features
- AI Conversations: Communicate seamlessly with an AI that you can customize in personality and response style.
- DALL·E Image Generation: Request AI-generated images by sending simple prompts.
- Whisper Speech Recognition: Send voice messages and have them transformed into text.
- Azure Voice Responses: Experience lifelike voice replies from the bot.
- User Privacy: Secure interaction protocols prevent unauthorized data collection in group chats.
- Role and Usage Customization: Customize ChatGPT's responses and manage user access with white lists.
Deployment Instructions
Deploying your own instance of the ChatGPT Telegram Bot requires several initial steps. You will need to obtain a Telegram Bot token, OpenAI API key, and set up a Linux-based server environment. Optional tools like FFmpeg and Azure TTS SDK enhance voice functionalities but are not mandatory for basic operations.
Simple Installation Steps
- Download the Source Code: Clone the project repository to your machine and install required dependencies using pip.
- Configuration Setup: Create a
config.json
file to input sensitive information like API keys. - Running the Bot: Utilize the provided shell scripts to start the bot or deploy it using Docker for ease.
Utilizing the Bot
In personal chats, simply send messages to your bot. For group chats, the /chat
command invokes the bot. Inline mode also allows interaction via commands, making the bot’s utilities accessible even if it isn’t a group member.
Supported Commands
/start
: Initiates the bot./role <prompt>
: Establishes a conversational role./chat
: Engages the bot in group environments./dalle <prompt>
: Requests a DALL·E image generation./clear
: Resets the conversational context./getid
: Retrieves your Telegram user ID.
Additional Information for Developers
Developers can access comprehensive documentation to understand the inner workings or customize the ChatGPT Bot.
Support and Contribution
The project is open-source under the MIT License, welcoming contributions from developers and enthusiasts. If you enjoy using this bot, you might consider supporting its continued development by visiting the project page and following contribution guidelines.
Final Thoughts
The ChatGPT Telegram Bot is a powerful tool for interactive and automated conversations on Telegram, bringing additional functionality and personalization options to your everyday communication needs. Keep an eye out for even more exciting features in future updates!