A Python-based Telegram user bot that listens to incoming voice messages and responds with generated text to the user.
Step 1: Clone the Repository First, clone the repository to your local machine using Git:
git clone https://github.com/piumalSahashraka/ai-voice-telegram-account.git
cd ai-voice-telegram-account
Step 2: Set Up a Virtual Environment (Optional but Recommended) It's a good practice to use a virtual environment to manage your project's dependencies:
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
Step 3: Install Dependencies With the virtual environment activated, install the required Python packages:
pip install -r requirements.txt
Step 4: Configure Environment Variables Create a .env file in the root directory of the project to store environment variables like your Telegram bot token and API keys:
touch .env
#Add the necessary variables to the .env file
Step 5: Run the Bot After setting up the environment, you can start the bot:
python main.py
Simply send a voice message to the user bot
Telegram Personal Account Voice Message Functionality AI Text Generation with Gemini API
Handle more exceptions.
We welcome contributions to this project! Whether you're fixing a bug, adding a new feature, or improving documentation, your help is appreciated. Please read the CONTRIBUTING GUIDELINE.
If you have any questions or need assistance, feel free to open an issue or reach out to the maintainers.
Copyright (c) 2024 Piumal Gunarathne This project is licensed under the MIT License.