Coder Social home page Coder Social logo

stable-diffusion-telegram-bot's Introduction

AI Powered Art in a Telegram Bot!

Setup

Bot uses Stable Diffusion Api as the backend.

You need a stable Diffusion API for this bot to run

Create a file called .env in the same folder as main.py. Inside the .env file,

create a line TOKEN = xxxx, where xxxx is your telegram bot token.

create a line API_ID = xxxx, where xxxx is your telegram id api id.

create a line API_HASH = xxxx, where xxxx is your telegram id api hash.

create a line KEY = xxxx, where xxxx is your https://stablediffusionapi.com/settings/api api key.

Now, you can run the bot

python main.py

Any questions or need help? Come hop on by to our Discord Server

Join Now

stable-diffusion-telegram-bot's People

Contributors

itspranavajay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stable-diffusion-telegram-bot's Issues

NameError: name 'app' is not defined

Traceback (most recent call last):
File "C:\stable-diffusion-telegram-bot-main\main.py", line 23, in
@app.on_message(filters.command(["draw"]))
NameError: name 'app' is not defined

No API KEY found

Traceback (most recent call last):
File "/media/bad-hdd-nextcloud/nextcloud-data/Programms/stable-diffusion-telegram-bot/main.py", line 88, in
app.run()
File "/var/www/miniconda3/lib/python3.10/site-packages/pyrogram/methods/utilities/run.py", line 58, in run
self.start()
File "/var/www/miniconda3/lib/python3.10/site-packages/pyrogram/sync.py", line 66, in async_to_sync_wrap
return loop.run_until_complete(coroutine)
File "/var/www/miniconda3/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/var/www/miniconda3/lib/python3.10/site-packages/pyrogram/methods/utilities/start.py", line 52, in start
is_authorized = await self.connect()
File "/var/www/miniconda3/lib/python3.10/site-packages/pyrogram/methods/auth/connect.py", line 38, in connect
self.load_config()
File "/var/www/miniconda3/lib/python3.10/site-packages/pyrogram/client.py", line 616, in load_config
raise AttributeError("No API Key found. More info: https://docs.pyrogram.org/intro/setup")
AttributeError: No API Key found. More info: https://docs.pyrogram.org/intro/setup

What i have to do to make bot working?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.