Rᴇɴᴅʏ Pʀᴏɪᴇᴄᴛs
225 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
Architecture: clean
Code: perfect
Async: working

API:
Invalid or expired token
How to Automatically Save base_url?

You can set base_url when using the userbot:

1. During initialization:
tg = Client(base_url="https://tgcore.ryzenths.dpdns.org")


2. Or by assigning it directly:
tg.base_url = "https://tgcore.ryzenths.dpdns.org"

This value will be saved and will persist.

Code Example:
MEME_IG_URL = "https://www.instagram.com/reel/......"

result = await tg.use.default\
.types("/api/web/platform/download")\
.platform("instagram")\
.url(MEME_IG_URL)\
.send(allow_object=True)

return result
ev kb = tg.kb().copy_text("Pyrogram same", "maybe").build()

result = await tg.use.default\
.types("/api/v2/sendMessage")\
.chat_id(message.chat.id)\
.text("hello world")\
.reply_markup(kb)\
.skip()

return result
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
TGCore is not just a library. It’s an SDK architecture.
Parameter Configuration Phase
(fluid builder collects parameters before execution)
Parameter hell ❌
Fluent builder ✔
Python syntax:
user = await tg.platform.facebook.download(
url=url
).send(via_result=True)

Chaining syntax:
user = await tg.platform.facebook\
.download()\
.url("done")\
.send(via_result=True)
Code example:
with open("/file/path/new.jpg", "rb") as f:
await tg.raw.sendPhotoUpload()\
.chat_id(message.chat.id)\
.photo(("a.jpg", f, "image/jpeg"))\
.caption("Learn chaining first")\
.reply_markup(
tg.kb()\
.style(
"Custom Name",
"danger",
copy_text={"text": "this copy"}
)
.build()
)\
.send()
Normal people: sleeping
Developers: writing models
When VPS IP gets banned by Telegram...

Solution: build your own API proxy layer.
#TgCore
Other libs: parameter chaos
TgCore: clean chaining