Skip to main content

An API using Inspiro AI quote generator.

Project description

InspiroQuotes

An API using Inspiro AI quote generator.

Installation

pip install InspiroQuotes

Example

  • For General Purpose
from InspiroQuotes import Quote

Q = Quote()

img_link1 = Q.quote()
img_link2 = Q.quote()
text_quote = Q.text_quote()

print(img_link1)
print(img_link2)
print(text_quote)
  • For Telegram
from InspiroQuotes import Quote
from pyrogram import filters, Client
from pyrogram.types import Message

Q = Quote()
pbot = Client("PyroBot", api_id="API_ID", api_hash="API_HASH", bot_token="TOKEN")


@pbot.on_message(filters.command("quote"))
async def sauce(_, message: Message):
    quote_url = await Q.quote()
    return await message.reply_photo(photo=quote_url)


@pbot.on_message(filters.command("tquote"))
async def sauce(_, message: Message):
    text_quote = await Q.text_quote()
    return await message.reply_text(text_quote)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

InspiroQuotes-1.0.2.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

InspiroQuotes-1.0.2-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page