Forwarded from Rᴇɴᴅʏ Pʀᴏɪᴇᴄᴛs
• API devs etc
- use router enums:
• TgCore (full control)
PyPi: https://pypi.org/project/tgcore/
- use router enums:
/v1, /openai, /apifrom tgcore import Client
tg = Client(
bearer_token="gsk_xxxx",
base_url="https://api.groq.com",
is_bearer=True
)
await (
tg.app(
"v1/chat/completions",
router="/openai",
tgmod=False
)
.model("moonshotai/kimi-k2-instruct-0905")
.messages(tg.user("say test"))
).execute()
• TgCore (full control)
from tgcore import Client
tg = Client(api_key="xxxxxx")
result = await tg.app("groq.ai", tgmod=True)\
.model("moonshotai/kimi-k2-instruct-0905")\
.messages(
tg.user("Say test")
)\
.send()
print(result.text())
PyPi: https://pypi.org/project/tgcore/
Forwarded from Rᴇɴᴅʏ Pʀᴏɪᴇᴄᴛs
Ultra-fast 💀
If using telethon:
If using Pyrogram:
PyPi: https://pypi.org/project/tgcore/
If using telethon:
tg.parallel(install_type="cryptg")If using Pyrogram:
tg.parallel(install_type="tgcrypto")PyPi: https://pypi.org/project/tgcore/
Forwarded from Rᴇɴᴅʏ Pʀᴏɪᴇᴄᴛs
Crazhshot
Crazy Shot