Skip to content

This is a Telegram bot that provides healthy food recommendations based on your meal pics using OpenAI's GPT-4 Vision model.

Notifications You must be signed in to change notification settings

shreyas-makes/telegram-mealchat

Repository files navigation

Healthy Meal Recommender

image

Description

This is a Telegram bot that receives an image and replies with a description of the image using OpenAI's GPT-4 Vision model.

Features

  • Receives images from users via Telegram.
  • Uses the GPT-4 Vision model to generate a textual description of the images.
  • Responds to users with the description of the images.

Prerequisites

  • Python 3.9 or higher
  • Install required Python packages: pip install python-telegram-bot httpx python-dotenv

Usage

  1. Clone the repository: git clone <repository-url>

  2. Navigate to the project directory: cd telegram-gpt4-vision-bot

  3. Install dependencies: pip install -r requirements.txt

Configuration

  1. Create a Telegram Bot:
  • Create a new bot on Telegram by following the instructions here.
  • Note down the API token provided by BotFather.
  1. Create a .env file in the project directory: Add your Telegram API token to the .env file:
TELEGRAM_API_KEY=<your-telegram-api-token>

Usage

Run the bot script: python3.9 vision-gpt-telegram.py

  1. Start a conversation with your bot on Telegram and send an image to receive a description.

Deployment

You can deploy this bot on cloud platforms like Heroku, AWS, or Google Cloud Platform for continuous operation.

Contributing

Contributions are welcome! Feel free to submit issues or pull requests.

Make sure to replace with the actual URL of your repository and with your Telegram API token. Feel free to modify it according to your project's requirements.

About

This is a Telegram bot that provides healthy food recommendations based on your meal pics using OpenAI's GPT-4 Vision model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages