What are the quotas like execution time, storage etc?
show comments
domh
This is cool. I wish Signal had a bot API like telegram's.
show comments
imhoguy
Clever idea! Although after reading it briefly I see a need for secrets storage.
I've made one Telegram bot hosted on VPS with Docker and cloud LLM. It also interacts with a few other outside services and all credentials are injected via env vars now.
Should I push them as `.env` file for Telegram serverless?
show comments
raybb
Providing a SQLite db out of the box is a nice touch. I wonder if they're capping it's size in any way.
leourbina
Just use Cloudflare Workers. Incredibly fast, super cheap and stable and very mature.
victorbjorklund
I don't see anything about pricing.
show comments
bdcravens
With the popularity of Hermes, OpenClaw, etc, BotFather is quite a linchpin in the AI ecosystem.
codedokode
It looks like they are making their own cloud, with such a little team?
Also we should be using Matrix but it doesn't have half of the features (no channels, no mini apps etc).
Also I wonder whether compiling JS to native code is worth the hassle or not. In browser, it would slow down page load, but here you need to compile only on deploy.
show comments
AnonC
Emphasis mine:
> Each invocation runs in a lightweight V8 isolate, close to Telegram's own systems, so calls to the Bot API and your database are quick and reliable.
Telegram’s servers are distributed worldwide. I understand that the calls to the Bot API may be quick because the serverless code would be propagated to the edge, but how does it handle an SQLite DB? Is that also replicated to guarantee quick access from anywhere?
show comments
kreco
The title made me realized that there is less and less use of the "serverless".
Which was one of the most non-sensical word to say "You don't maintain the server".
nunobrito
A few questions and if someone knows please help:
1) storage limits?
2) can access the internet? If so: bandwidth limits?
Thanks!
show comments
honeycrispy
We're never getting away from Javascript, are we
zb3
I thought this was about P2P messaging (without servers, hence server "less"), but no, obviously "serverless" on HN has to mean "run code on someone else's servers"..
show comments
sidcool
I did not understand this. What does this do exactly?
show comments
freakynit
Dude.. how do I even enable that serverless toggle? It's not even there. I have updated my app just now.
"In @BotFather, open your bot → Serverless and turn it on" .... nop... that setting isn't even there.
BiteCode_dev
I always wondered how telegram could afford being free. A chat is expensive to run, a chat with gigantic media quotas even more, and they don't have ads.
There is no way their premium pman cover their cost, espacially with their extensive bot API that multiplies their traffic tenfold.
And now they add free hosting of bots on top?
How the hell are they doing that?
nireko
when i can start?????
show comments
stavros
This is off-topic, but I was kind of surprised to see this page written by Claude. I guess I shouldn't really be surprised, but I somehow didn't expect it.
show comments
mschuster91
Good lord. This reeks of LLM... why should I use your product when you can't be bothered to have a human write it? Why should I trust it to work correctly or have been decently tested, neither of which is a given when having an AI vibe-code it?
And why is it one huge single page of word salad instead of self-contained units?
Anyway, good to see someone post a fully self contained example demonstrating core concepts. At least one thing done right.
show comments
dzonga
telegram is full of bots and spam.
before it was a better WhatsApp alternative. now either WhatsApp or Signal.
What are the quotas like execution time, storage etc?
This is cool. I wish Signal had a bot API like telegram's.
Clever idea! Although after reading it briefly I see a need for secrets storage.
I've made one Telegram bot hosted on VPS with Docker and cloud LLM. It also interacts with a few other outside services and all credentials are injected via env vars now.
Should I push them as `.env` file for Telegram serverless?
Providing a SQLite db out of the box is a nice touch. I wonder if they're capping it's size in any way.
Just use Cloudflare Workers. Incredibly fast, super cheap and stable and very mature.
I don't see anything about pricing.
With the popularity of Hermes, OpenClaw, etc, BotFather is quite a linchpin in the AI ecosystem.
It looks like they are making their own cloud, with such a little team?
Also we should be using Matrix but it doesn't have half of the features (no channels, no mini apps etc).
Also I wonder whether compiling JS to native code is worth the hassle or not. In browser, it would slow down page load, but here you need to compile only on deploy.
Emphasis mine:
> Each invocation runs in a lightweight V8 isolate, close to Telegram's own systems, so calls to the Bot API and your database are quick and reliable.
Telegram’s servers are distributed worldwide. I understand that the calls to the Bot API may be quick because the serverless code would be propagated to the edge, but how does it handle an SQLite DB? Is that also replicated to guarantee quick access from anywhere?
The title made me realized that there is less and less use of the "serverless".
Which was one of the most non-sensical word to say "You don't maintain the server".
A few questions and if someone knows please help:
1) storage limits? 2) can access the internet? If so: bandwidth limits?
Thanks!
We're never getting away from Javascript, are we
I thought this was about P2P messaging (without servers, hence server "less"), but no, obviously "serverless" on HN has to mean "run code on someone else's servers"..
I did not understand this. What does this do exactly?
Dude.. how do I even enable that serverless toggle? It's not even there. I have updated my app just now.
"In @BotFather, open your bot → Serverless and turn it on" .... nop... that setting isn't even there.
I always wondered how telegram could afford being free. A chat is expensive to run, a chat with gigantic media quotas even more, and they don't have ads.
There is no way their premium pman cover their cost, espacially with their extensive bot API that multiplies their traffic tenfold.
And now they add free hosting of bots on top?
How the hell are they doing that?
when i can start?????
This is off-topic, but I was kind of surprised to see this page written by Claude. I guess I shouldn't really be surprised, but I somehow didn't expect it.
Good lord. This reeks of LLM... why should I use your product when you can't be bothered to have a human write it? Why should I trust it to work correctly or have been decently tested, neither of which is a given when having an AI vibe-code it?
And why is it one huge single page of word salad instead of self-contained units?
Anyway, good to see someone post a fully self contained example demonstrating core concepts. At least one thing done right.
telegram is full of bots and spam.
before it was a better WhatsApp alternative. now either WhatsApp or Signal.