A Telegram bot that uses AI to transcribe audio messages to text and generate images using OpenAI API.
- Clone the repository
- Copy
settings.example.pytosettings.py - Fill in the required values in
settings.py. See Settings for more information. - Run
docker compose up -d
| Name | Description |
|---|---|
OPENAI_API_KEY |
OpenAI API key. You can get it from here. |
TELEGRAM_BOT_TOKEN |
Telegram bot token. You can get it from BotFather. |
TELEGRAM_CHAT_IDS |
A list of all users allowed to talk with the bot. You can get the chat id using IDBot. |
- Send an audio message to the bot (you can also forward an audio message from another chat)
- Wait for the bot to transcribe the audio message
- Send a message to the bot with the text
/image {prompt}, where{prompt}is the prompt for the image generation - Wait for the bot to generate the image
This project is licensed under the MIT License.