Discord-inspired Telegram invite widget for README badges and HTML embeds.
- Create a new Pages project from this repo (or upload the files manually).
- Leave Build command empty and set Build output directory to
/. - Deploy; the function is automatically exposed at
/:username.
- Direct URL:
https://tginvite.pages.dev/<telegram-username> - Markdown snippet:
[](https://t.me/<username>)
Edit getSVGTemplate() in functions/[username].js to adjust colors, layout, fonts, or button text.
- Make sure the Telegram channel or group is public and the username is correct.
- Cached responses live for one hour; purge cache or wait if the data seems stale.