16 comments

  • codedokode35 minutes ago
    It looks like they are making their own cloud, with such a little team?<p>Also we should be using Matrix but it doesn&#x27;t have half of the features (no channels, no mini apps etc).<p>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.
  • imhoguy1 hour ago
    Clever idea! Although after reading it briefly I see a need for secrets storage.<p>I&#x27;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.<p>Should I push them as `.env` file for Telegram serverless?
  • eamag3 hours ago
    What are the quotas like execution time, storage etc?
    • xd19362 hours ago
      Thinking about using this to run my Plex server
  • domh2 hours ago
    This is cool. I wish Signal had a bot API like telegram&#x27;s.
    • AgharaShyam1 hour ago
      I wish WhatsApp did... hopefully it goes the way of BBM and a more developer friendly platform becomes the norm among normies.
      • domh58 minutes ago
        WhatsApp does appear to have some &quot;business&quot; account&#x2F;API type stuff which I assume is scriptable. But I don&#x27;t believe it&#x27;s got a free tier for personal use (although I haven&#x27;t personally looked).<p>It is always preferable to use WhatsApp to contact a business than calling up.
      • pajamasam36 minutes ago
        Hmmm no, Meta is making money from businesses using their API.
    • timtody1 hour ago
      Not having a bot API is one of the many things that makes Signal amazing
  • raybb3 hours ago
    Providing a SQLite db out of the box is a nice touch. I wonder if they&#x27;re capping it&#x27;s size in any way.
  • AnonC2 hours ago
    Emphasis mine:<p>&gt; Each invocation runs in a lightweight V8 isolate, close to Telegram&#x27;s own systems, so <i>calls to the Bot API and your database</i> are quick and reliable.<p>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?
    • laosb2 hours ago
      Telegram&#x27;s servers are far from &quot;distributed worldwide&quot;: In fact, it currently has only 5 logical &quot;data center&quot;s, and while DC3 is still on, clues [0] seem to suggest DC3 doesn&#x27;t actually carry user data at all now, and both DC2 and 4 are in Amsterdam, so essentially they just need to serve 3 locations.<p>Also, Telegram&#x27;s protocol design only allows for connecting to user&#x27;s home DC for any write interactions (except media, which in most cases still is home DC, or a &quot;media DC&quot; alongside the home DC). Bots are based on the same DC of the user, so almost all meaningful interactions will happen only on one DC for any specific bot.<p>[0]: <a href="https:&#x2F;&#x2F;dev.moe&#x2F;en&#x2F;3025" rel="nofollow">https:&#x2F;&#x2F;dev.moe&#x2F;en&#x2F;3025</a>
    • netsharc2 hours ago
      My first guess would be replicaton isn&#x27;t that critical, because a user would mostly interact with an instance that&#x27;s nearby, and this instance has their data. But the page mentions:<p>&gt; Games and Tools — including leaderboards, quizzes and more.<p>A leaderboard that&#x27;s globally consistent, huh, that&#x27;s not trivial.<p>Maybe they just propagate the SQL commands to all their servers...
      • lukan1 minute ago
        &quot;My first guess would be replicaton isn&#x27;t that critical, because a user would mostly interact with an instance that&#x27;s nearby, and this instance has their data. But the page mentions&quot;<p>Apparently not<p>&quot;Each account is associated with a DC upon registration and does not change with the user’s phone number or geographic location. Users cannot freely choose a DC—if connected to the wrong DC, the server returns an error message, requiring the client to connect to the correct DC associated with the account.&quot;<p>according to this source: <a href="https:&#x2F;&#x2F;dev.moe&#x2F;en&#x2F;3025" rel="nofollow">https:&#x2F;&#x2F;dev.moe&#x2F;en&#x2F;3025</a><p>Also on the frontpage now:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48920475">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48920475</a>
    • weli2 hours ago
      I guess the v8 isolate is heavily restricted and sandboxed and can&#x27;t be used to access the local filesystem
  • zb327 minutes ago
    I thought this was about P2P messaging (without servers, hence server &quot;less&quot;), but no, obviously &quot;serverless&quot; on HN has to mean &quot;run code on someone else&#x27;s servers&quot;..
  • bdcravens2 hours ago
    With the popularity of Hermes, OpenClaw, etc, BotFather is quite a linchpin in the AI ecosystem.
  • victorbjorklund2 hours ago
    I don&#x27;t see anything about pricing.
    • simonw1 hour ago
      The lack of a clear business model does make me hesitate in building anything substantial on it.<p>Supposedly Telegram has been profitable since 2024 but there&#x27;s crypto stuff mixed in there so it&#x27;s hard to know how stable that is.
    • catapart2 hours ago
      I&#x27;m also curious about this.
    • sam_lowry_1 hour ago
      free so far.
    • dist-epoch2 hours ago
      sounds free to me
  • honeycrispy1 hour ago
    We&#x27;re never getting away from Javascript, are we
  • nunobrito1 hour ago
    A few questions and if someone knows please help:<p>1) storage limits? 2) can access the internet? If so: bandwidth limits?<p>Thanks!
    • ameliaquining0 minutes ago
      The post doesn&#x27;t say anything about runtime resource limits, which I agree is a strange omission given the architecture they&#x27;ve chosen. I suppose someone could try building a bot that uses more and more resources, and see when it stops working.<p>There&#x27;s a section about making HTTP requests (<a href="https:&#x2F;&#x2F;core.telegram.org&#x2F;bots&#x2F;serverless#http" rel="nofollow">https:&#x2F;&#x2F;core.telegram.org&#x2F;bots&#x2F;serverless#http</a>), which mentions &quot;two constraints: * Response content is textual (binary payloads aren&#x27;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.&quot; 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.
  • mschuster912 hours ago
    Good lord. This reeks of LLM... why should I use your product when you can&#x27;t be bothered to have a human write it? Why should I <i>trust</i> it to work correctly or have been decently tested, neither of which is a given when having an AI vibe-code it?<p>And why is it one huge single page of word salad instead of self-contained units?<p>Anyway, good to see someone post a fully self contained example demonstrating core concepts. At least <i>one</i> thing done right.
    • adlpz2 hours ago
      Sounds like it&#x27;s free, so, why the hate? May as well have zero docs. I don&#x27;t think they&#x27;re trying to convince you of anything.
      • mschuster911 hour ago
        &gt; Sounds like it&#x27;s free, so, why the hate?<p>I see undisclosed usage of AI as a theft of my time.
  • stavros3 hours ago
    This is off-topic, but I was kind of surprised to see this page written by Claude. I guess I shouldn&#x27;t really be surprised, but I somehow didn&#x27;t expect it.
    • jore3 hours ago
      Out of curiosity - how did you figure this out? I cannot find any hints about that. Was it the language used?
      • ameliaquining16 minutes ago
        Confirmed AI: <a href="https:&#x2F;&#x2F;www.pangram.com&#x2F;history&#x2F;2c717a3e-a9c6-4595-96a0-1aa80f539c5b" rel="nofollow">https:&#x2F;&#x2F;www.pangram.com&#x2F;history&#x2F;2c717a3e-a9c6-4595-96a0-1aa8...</a>
      • zackkrida2 hours ago
        language, structure. look how much negation there is. the construction &quot;no A, no B, no, C&quot; is used several times.<p>or another example, the following sentence:<p>&quot;handlers&#x2F; is flat — no subdirectories&quot;<p>who writes like this? you&#x27;d just write &quot;handlers&#x2F; is a flat folder&quot; or similar.
      • usui2 hours ago
        I often see replies to AI-generated posts being pointed out here asking what makes it obvious. Is it that difficult to notice the indicators? Is it mostly undetected by English-as-a-second-language speakers, people inexperienced with generative AI, or is it something else?
        • vidarh2 hours ago
          I rather think the surprise is a result of technical users wildly overestimating how obvious these markers are to people.
      • haunter2 hours ago
        <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Wikipedia:Signs_of_AI_writing" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Wikipedia:Signs_of_AI_writing</a>
      • petercooper2 hours ago
        <i>&quot;it doesn&#x27;t silently go unnoticed&quot;, &quot;would be silently inert&quot;, &quot;instead of silently overwriting&quot;, &quot;you can never silently overwrite&quot;</i><p>The biggest tell for me is overuse of the term &quot;silently&quot;. &quot;quietly&quot; is another one you often see from Claude in particular. Models love adverbs for whatever reason, whereas a human writer would use them in moderation for emphasis or prefer terms like &quot;by accident&quot;.
        • ameliaquining15 minutes ago
          In my experience, &quot;silently overwrite&quot; appeared regularly in technical writing long before LLMs were a thing, because it&#x27;s a useful concept to be able to point at. &quot;Silently go unnoticed&quot; is kind of redundant, though.
        • IanCal1 hour ago
          Accidental things and silent things are very different. Accidental means you didn&#x27;t mean to do it, silent means you don&#x27;t know you&#x27;ve done it (or might not if you want to get picky, you could notice).
      • dools1 hour ago
        Have you ever “wired” anything to anything else when developing software? No, because software doesn’t involve wires, but LLMs are quite convinced that it does.
        • kmeaw44 minutes ago
          Sure, even @Autowired
      • fakeBeerDrinker2 hours ago
        Possibly the excessive use of em dashes. Just a guess.
        • mohammedmsgm2 hours ago
          This is so obvious<p>The most AI generated MD in existence. It&#x27;s also th excessive use of bold, only AI can make bold hard to read.
      • stavros2 hours ago
        I can&#x27;t quite tell you, it wasn&#x27;t something specific, Claude&#x27;s writing is just a specific sort of punchy. The &quot;directly on X - no Y, no Z, no A&quot; and the &quot;this is the part you no longer have to do&quot; just smell a lot like Claude. Also &quot;removes that layer entirely&quot;, &quot;they map cleanly onto each other&quot;, it&#x27;s all just Claude.<p>It&#x27;s how you see a painting and you know it&#x27;s by Picasso, let&#x27;s say, or you read an author and you know it&#x27;s Hemingway. Everyone has their own unique style, and so does Claude. It&#x27;s just that Claude is the most prolific writer in human history now.
    • dist-epoch2 hours ago
      I finds it surprising you find it surprising.<p>Is this the best use of a human, to write a long, detailed manual for a feature? Which most likely will be read by another LLM?
  • mcraiha3 hours ago
    [flagged]
  • dzonga2 hours ago
    telegram is full of bots and spam.<p>before it was a better WhatsApp alternative. now either WhatsApp or Signal.
    • kelvinjps102 hours ago
      those bots are different to these ones, for these you have to start the interaction. bots is the most useful feature of telegram
    • embedding-shape2 hours ago
      &gt; telegram is full of bots<p>It&#x27;s been a core feature of Telegram since almost the beginning, and one of the main reasons I end up using Telegram, not sure why you&#x27;d think this is a drawback. The spam sucks though, not sure how they haven&#x27;t got a handle on it yet.
      • vachina1 hour ago
        If you don’t join spammy groups you won’t get spam
        • embedding-shape1 hour ago
          Fair, I am a part of a bunch of groups I no longer care about that the spam might originate from. Thanks :)
    • sgt2 hours ago
      They should start charging for it. Like not a lot, maybe just a coffee a month. That should keep the bots away.
    • TacticalCoder2 hours ago
      I use Telegram only for groups with people I know. I&#x27;ve got zero issues with boths.<p>Are you using public channels? (are those even a thing with Telegram?)
      • flexagoon2 hours ago
        &gt; are those even a thing with Telegram?<p>It is <i>the</i> thing with Telegram