5 ms·
A few questions and if someone knows please help: 1) storage limits? 2) can access the internet? If so: bandwidth limits? Thanks!
by nunobrito 2mo ago
A few questions and if someone knows please help:
1) storage limits?
2) can access the internet? If so: bandwidth limits?
Thanks!
- ameliaquining 2mo agoThe post doesn't say anything about runtime resource limits, which I agree is a strange omission given the architecture they've chosen. I suppose someone could try building a bot that uses more and more resources, and see when it stops working. There's a section about making HTTP requests (https://core.telegram.org/bots/serverless#http https://core.telegram.org/bots/serverless#http), which mentions "two constraints: * Response content is textual (binary payloads aren't supported). * The total response is capped at 32 MB. That cap covers the whole response — streaming with res.body lets you process a large body incrementally, but it does not raise the limit." Unclear whether the 32 MB limit is per outgoing request, or shared among all outgoing requests made by a single handler invocation. Also unclear what other limits apply. Non-HTTP protocols presumably are not available.
- codedokode 2mo agoThis means the code must pass the URL in cleartext so that Telegram can detect those who try to use bots for scraping and proxies.
- ameliaquining 2mo agoIf you're talking about the lack of support for binary responses, I don't think this'd stop people from using Base64 to tunnel arbitrary payloads? Otherwise I'm not sure what the alternative would be to "passing the URL in cleartext" to an HTTP client.
- codedokode 2mo agoNo I meant you must use an API that accepts URL and cannot create SSL sockets and hide communication from Telegram.