Skip to content

losparviero/DALL-E-Telegram-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image Creator Telegram Bot

Generate pictures from text in Telegram, powered by DALL-E!


Brief Note

This uses the official OpenAI generations endpoint which is paid hence will require an API key from OpenAI. You'll be billed for usage accordingly. Refer to OpenAI's website for pricing.


Install

  1. Clone git repo.

  2. Run npm i in project folder.

  3. Rename .env.example to .env and provide bot token & OpenAI API key.

  4. Run node bot to start the bot.

It's advisable to run the bot using PM2 or any startup manager for persistent execution.

.env reference

BOT_ADMIN refers to the channel/user ID for logging purposes.


Uninstall

  1. Use rm -rf.

Note: If you're unfamiliar with this command, delete project folder from file explorer.


Mechanism

The bot uses OpenAI's DALL-E model API.


License

AGPL-3.0 - ©️ Zubin