Settings

Theme

Show HN: Surfgram – A 0-dep Telegram SDK with types generated from official docs

github.com

1 points by anybodyy 4 months ago · 0 comments · 1 min read

Reader

I built surfgram because I was tired of heavy Telegram libraries and inconsistent types

Key technical decisions: — Zero Dependencies: No node-fetch, no axios, just native calls — Source of Truth: Instead of manual typing, I wrote a generator that scrapes the official Telegram Bot API docs — Type Safety: Focus on strict null checks to avoid undefined at runtime.

The repo is here: https://github.com/surfgram/surfgram I’d love to hear your feedback on the code generation logic and the API design

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection