Rᴇɴᴅʏ Pʀᴏɪᴇᴄᴛs
226 subscribers
1.04K photos
29 videos
17 files
743 links
tgcore is open source. Built for production Telegram apps.

https://github.com/TeamKillerX/tgcore/
Download Telegram
You can exit the channel instead of silent horror 💀
🤣1
old vs new 🗿
• 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/
❤1🤣1
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
ev t = await tg.translate.create(tl="en", q="Anda sudah lama berada di sini").send()

return t.next().translated_text
Full TgCore API 🗿
🤣1
TgCore Update
🤣1