Auto-built browser bundle of GramJS for use in plugins via CDN.
<script src="https://cdn.jsdelivr.net/gh/lampame/TGSBundle@main/telegram.min.js"></script>
<script>
const client = new window.telegram.TelegramClient(
window.telegram.Api,
session,
apiId,
apiHash,
{ connectionRetries: 5 }
);
</script>Pin a specific tag instead of @main to avoid unexpected changes caused by the jsDelivr cache (up to 7 days):
<script src="https://cdn.jsdelivr.net/gh/lampame/TGSBundle@v1.2.3/telegram.min.js"></script>The v1.2.3 tag should match the corresponding GramJS release.
A GitHub Actions workflow runs daily at 03:00 UTC — it clones the GramJS repository, builds it with webpack, minifies with terser, and commits the result back to this repo.
To trigger a build manually, go to the Actions tab → Build GramJS Bundle → Run workflow.
| File | Description |
|---|---|
telegram.js |
Full bundle (~828 KB) |
telegram.min.js |
Minified bundle |