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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for InspiroQuotes-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f3c82a422086349293df9916f1379314c9e914d64699c33d98de3f21e29499c |
|
MD5 | 406673606d20138e99bfba5f8aabe7dc |
|
BLAKE2b-256 | 9ce6330609bf3da7f6d6947b83e93a9277f6f0a2c51cf237aa99852dfad6faa3 |