Go BotFather and set the bot channel and key. Go OpenAi api-Keys to get key Go Stability api-keys to get key Fill them in config.json
For test
in telegram bot, input /image <prompt> to generaate the image
pip install -r requirements.txt
python bot.py
Reference openai-python python-telegram-bot Stability Api