Logo Lanfrica

gitarer2455/Gpt_amharic

Domaine:

natural language processing

Type de record:

software
Créateur:
git
Hôte:
a telegram AI powered bot having conversation with peoples in amharic translates chatgpt responses to amharic and send to users # Telegram Translation and AI Response Bot This is a **Telegram bot** that integrates **AI-based language generation** and **translation** capabilities. It receives messages in **Amharic**, translates them to **English**, sends the translated text to an AI model for generating a response, and then translates the response back to **Amharic** before sending it back to the user. Additionally, all conversations are saved to a text file for record-keeping. ## Key Features - **Amharic to English Translation**: Translates user input from Amharic to English using Google Translate. - **AI-Powered Responses**: Sends the translated English text to the AI21 model to generate relevant responses. - **English to Amharic Translation**: Translates the AI-generated response back to Amharic for user interaction. - **Conversation Logging**: Saves the conversation (both user input and AI response) to a text file for record-keeping. - ** Doesn't need to download any app ## How It Works 1. **Receive Message**: The bot receives an input message from the user in **Amharic**. 2. **Translate to English**: The message is translated into **English** using Google Translate. 3. **Generate Response**: The translated text is sent to the **AI21 API** (a language generation model) to produce a meaningful response. 4. **Translate Back to Amharic**: The AI response is translated back into **Amharic** and sent to the user. 5. **Log Conversation**: Both the user's message and the AI's response are saved in a file named `conversation.txt`. ## Built With 💻 - **Python Telegram API**: To interact with Telegram users and send/receive messages. - **deep_translator**: To perform translation between Amharic and English. - **AI21 API**: To generate AI-powered responses based on the translated text. - **time**: To implement delays between requests to ensure smooth execution. ## Pre installation Before running the bot, make sure to have the following: - **Telegram Bot Token**: Create a Telegram bot and ge …