Skip to content

Links Telegram with OpenAI for Image generation and edits

Notifications You must be signed in to change notification settings

OluwaFavour/Telegram-OpenAI-Bot

Repository files navigation

Image King Bot - Overview

This bot is a telegram bot built using Pyrogram framework to interact with the Telegram API, the OpenAI API for image generation, and lastly Pillow - a Python Image Library (PIL) Fork to resize images where necessary

To use

Prerequisites

In order to utilize the bot, simply download and install Telegram on your computer or mobile device. You may obtain it on your PC right here, or on your Android or iOS device through the respective app stores.

After Installing Telegram

Click here and follow the prompts.

Dependencies

  • Pyrogram

    pip3 install -U pyrogram
    
  • TGCrypto

    pip3 install -U tgcrypto
    
  • UVLoop

    pip3 install -U uvloop
    
  • Pillow

    pip3 install -U pillow
    
  • OpenAI

    pip3 install -U openai
    

Limitations

Using the DALL·E 2 API made the bot slow to generate images.

If you think you have a solution, you can send your solution as a pull request after opening an issue

Contact me on

About

Links Telegram with OpenAI for Image generation and edits

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages