alt.hn

2/2/2026 at 3:02:55 AM

Building a Telegram Bot with Cloudflare Workers, Durable Objects and Grammy

https://flashblaze.xyz/posts/cloudflare-workers-durable-objects-telegram-bot/

by flashblaze

2/2/2026 at 6:56:28 AM

Cute blog post. I would suggest to not use wrappers for building Telegram bots, and instead learn how it actually works. State management can be complex when building menus.

by koakuma-chan

2/2/2026 at 10:29:16 AM

yeah I've built a bunch of small and medium bots and every time I've tried to use a library I've run into way more problems than just using the telegram API directly, which is definitely one of the nicer APIs I've used

And between the really good docs and thousands of community wrappers, the agents can usually one-shot complex Telegram-API related features too.

by sixhobbits

2/2/2026 at 10:20:28 AM

Will definitely give that a try next time

by flashblaze

2/2/2026 at 7:19:21 AM

> Not everything has to be AI

well, not everything has to be workers or serverless :)

by gowthamgts12

2/2/2026 at 10:20:59 AM

Haha. Been enjoying developing on the Workers platform. Can't go back now, lol.

by flashblaze

2/2/2026 at 12:45:45 PM

Interesting, reminds me of building bots with Lambdas and GCP Cloud functions when they were a thing.

I find sharing current location a bit of an overkill to get a user‘s timezone. What‘s your take on that?

by p1anecrazy

2/2/2026 at 1:24:12 PM

Yes. It is a bit overkill. But I did not find a "better" and reliable way to get timezone from the user.

by flashblaze

2/3/2026 at 2:53:15 AM

[dead]

by aideasacademy

2/2/2026 at 5:30:00 AM

[dead]

by executerh

2/2/2026 at 6:05:32 AM

[flagged]

by boycothn