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)
Metadata
Release files for InspiroQuotes 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| InspiroQuotes-1.0.2.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| InspiroQuotes-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.8 kB
Release files / InspiroQuotes-1.0.2.tar.gz
| Download URL | InspiroQuotes-1.0.2.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd3c7d70680ef1908a632524e4a574c56d3318b07c2e990b7290f1b0fde4351e
|
|
BLAKE2b-256 checksum How to use checksums |
a5ee124b00586074de5567e1263e8c1c26c3c40f74652b079eef9b871d23df61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / InspiroQuotes-1.0.2-py3-none-any.whl
| Download URL | InspiroQuotes-1.0.2-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f3c82a422086349293df9916f1379314c9e914d64699c33d98de3f21e29499c
|
|
BLAKE2b-256 checksum How to use checksums |
9ce6330609bf3da7f6d6947b83e93a9277f6f0a2c51cf237aa99852dfad6faa3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|