我如何偶然发现了构建一个广播工具

2作者: LahanF大约 1 个月前原帖
我正在开发一个名为 Repta 的 Telegram 机器人,它帮助小型商家生成收据、记录开支,并通过聊天来管理他们的业务。在这个过程中,我遇到了一个令人意外的麻烦:向我的机器人订阅者广播消息。 我找到的大多数解决方案要么是专门为 webhook 设置而构建的(如果你的机器人像我一样使用轮询,这种方式并不兼容),要么是通过他们自己的基础设施代表你的机器人发送消息——如果你想保持简单和品牌一致,这并不是理想的选择。 因此,我最终构建了一个最小化的广播工具,可以通过你自己的 Telegram 机器人发送消息。没有 webhook 冲突,没有奇怪的代理。只需粘贴你的机器人令牌,输入聊天 ID,撰写消息(支持媒体和调度,全部本地),然后发送。 如果你也遇到过同样的问题,我很想听听你的想法。 免费访问链接: https://sweetcher.vercel.app
查看原文
I’ve been building a Telegram bot called Repta—it helps small vendors generate receipts, log expenses, and generally run their business via chat. While working on it, I ran into a surprisingly annoying problem: broadcasting messages to my bot subscribers.<p>Most solutions I found were either built specifically for webhook setups (which doesn’t play well if your bot uses polling, like mine does) or they send messages on your bot’s behalf using their own infrastructure—not ideal if you want to keep things simple and branded.<p>So I ended up building a minimal broadcast tool that sends messages through your own Telegram bot. No webhook conflicts, no weird proxies. Just paste your bot token, enter your chat IDs, compose your message (media and scheduling supported- all local), and send.<p>If you’ve ran into the same pain point, I’d love to hear your thoughts. Free access here: https:&#x2F;&#x2F;sweetcher.vercel.app