Skip to content

dnridwn/chat-with-gemini-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat With Gemini (Telegram Bot)

Chat With Gemini is a telegram bot as an AI Chatbot like ChatGPT, but it is completely free because it uses google's AI model "Gemini".

Prerequisite

  • Telegram bot token
  • Gemini API Key
  • Docker installed on your computer
  • MySQL database (optional, if you don't use the mysql container)

Installation

  • create a new database and create the chat_session table by running the SQL syntax from chat_session.sql (optional, if you don't use the mysql container)

  • Create new file called .env copy from .env.example

  • Set up .env file with your credentials

    # TELEGRAM BOT
    BOT_TOKEN="<YourBotToken>"
    
    # GEMINI
    GEMINI_API_KEY="<YourGeminiAPIToken>"
    
    # DATABASE
    DB_HOST="<YourDBHost>"
    DB_PORT="<YourDBPort>"
    DB_USER="<YourDBUser>"
    DB_PASS="<YourDBPass>"
    DB_NAME="<YourDBName>"
    
  • Finally, run

    docker compose up
    

Screenshots

App Screenshot

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published