Skip to content

About

The Telegram bot registers users by saving their first_name, username, and chat_id in MongoDB. It uses the Gemini API for AI-powered chat and logs interactions. The bot accepts images/PDFs, analyzes them via Gemini, and stores metadata. Users can perform web searches

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Telegram AI Chatbot with Gemini & MongoDB

🚀 Overview
An intelligent Telegram chatbot powered by Google Gemini AI, offering dynamic conversations, image/file analysis, web search summaries, and seamless data storage with MongoDB. Built for efficiency and security using Python's asynchronous capabilities.


✨ Features

  • ✅ User Management: Secure registration & phone number storage.
  • 🤖 AI-Powered Interactions:
    • Chat with Google Gemini AI.
    • Analyze images, files, and documents.
    • Web search summaries via Google Custom Search API.
  • 🗃️ Data Handling:
    • Store chat history in MongoDB Atlas.
    • Async operations for high performance.
  • 🔒 Security: Encrypted environment variables and async execution.

🛠️ Tech Stack

Category Tools/Technologies
Backend Python, python-telegram-bot, AsyncIO
AI Google Gemini Pro/Pro Vision API
Database MongoDB Atlas (NoSQL)
APIs Google Custom Search API

🚀 Setup Instructions

1️⃣ Clone the Repository

git clone https://github.com/yourusername/telegram-ai-chatbot.git
cd telegram-ai-chatbot

About

The Telegram bot registers users by saving their first_name, username, and chat_id in MongoDB. It uses the Gemini API for AI-powered chat and logs interactions. The bot accepts images/PDFs, analyzes them via Gemini, and stores metadata. Users can perform web searches

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages