nulldev
110 subscribers
299 photos
1 video
1 file
90 links
Download Telegram
nulldev pinned a photo
• API devs etc
- use router enums: /v1, /openai, /api
from 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/
Ultra-fast 💀

If using telethon:
tg.parallel(install_type="cryptg")

If using Pyrogram:
tg.parallel(install_type="tgcrypto")

PyPi: https://pypi.org/project/tgcore/
⚡ Parallel + tgcrypto / cryptg
TgCore Update
TgCore Update
Full TgCore API 🗿
TgCore Update
This carbon: @tgcore_dev
Ready jual API

contact: @zxyeor
You're in phases
I won't be coding later. 🗿