Inspiration
As a student, I often switch between different apps when studying: searching for information, asking AI questions, and generating visuals. I wanted a simple assistant that combines all of these features inside Telegram
What it does
StudyBuddy AI is a Telegram assistant powered by OpenAI.
The bot can:
Answer questions in natural language Remember recent conversation context Reset memory when requested Generate AI images from text prompts Respond in the user's language
This allows users to interact with AI directly from Telegram without opening multiple applications
How we built it
The project was built using Python and the Aiogram framework.
The bot integrates with OpenAI APIs for:
Conversational AI using GPT models AI image generation using GPT Image
Conversation history is stored in memory for each user to provide contextual responses
Challenges we ran into
One challenge was managing conversation memory while keeping responses fast and relevant.
Another challenge was integrating both text generation and image generation into a single Telegram workflow.
Handling API errors and maintaining a smooth user experience also required additional testing
Accomplishments that we're proud of
Successfully integrated OpenAI with Telegram Added conversational memory Added AI image generation Created a clean and simple user experience
What we learned
Through this project, we learned more about asynchronous Python programming, Telegram bot development, API integration, and conversation management for AI assistants
What's next for StudyBuddy AI Telegram Bot
Future improvements include:
Voice messages PDF and document analysis Study planning features Long-term memory Multi-user cloud database support
Built With
- aiogram
- asyncio
- dotenv
- gpt-4.1
- gpt-image-1
- openai-api
- python
- telegram-bot-api
Log in or sign up for Devpost to join the conversation.