Hacker News

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

koakuma-chan2 days ago

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.

sixhobbits2 days ago

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.

flashblazeop2 days ago

Will definitely give that a try next time

gowthamgts122 days ago

> Not everything has to be AI

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

flashblazeop2 days ago

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

p1anecrazy2 days ago

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?

flashblazeop2 days ago

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

aideasacademya day ago

[dead]

executerh2 days ago

[dead]

boycothn2 days ago

[flagged]

hn-front (c) 2024 voximity
source