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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file InspiroQuotes-1.0.2.tar.gz.

File metadata

  • Download URL: InspiroQuotes-1.0.2.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.7

File hashes

Hashes for InspiroQuotes-1.0.2.tar.gz
Algorithm Hash digest
SHA256 bd3c7d70680ef1908a632524e4a574c56d3318b07c2e990b7290f1b0fde4351e
MD5 644132f6fa74e2d0d33596c7741186d9
BLAKE2b-256 a5ee124b00586074de5567e1263e8c1c26c3c40f74652b079eef9b871d23df61

See more details on using hashes here.

File details

Details for the file InspiroQuotes-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for InspiroQuotes-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0f3c82a422086349293df9916f1379314c9e914d64699c33d98de3f21e29499c
MD5 406673606d20138e99bfba5f8aabe7dc
BLAKE2b-256 9ce6330609bf3da7f6d6947b83e93a9277f6f0a2c51cf237aa99852dfad6faa3

See more details on using hashes here.

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