Skip to content

ethancodebase/friendly-Telegram-ai-chatbot

Repository files navigation

Telegram AI Bot

A Telegram bot that uses AI to transcribe audio messages to text and generate images using OpenAI API.

Installation

  1. Clone the repository
  2. Copy settings.example.py to settings.py
  3. Fill in the required values in settings.py. See Settings for more information.
  4. Run docker compose up -d

Settings

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.

Usage

Audio transcription

  1. Send an audio message to the bot (you can also forward an audio message from another chat)
  2. Wait for the bot to transcribe the audio message

Image generation

  1. Send a message to the bot with the text /image {prompt}, where {prompt} is the prompt for the image generation
  2. Wait for the bot to generate the image

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •