Video wird geladen...
Video konnte nicht geladen werden
🚀 PSA: Telegram bots can now STREAM responses like ChatGPT! (Great for lovers) Bot API 9.3 added sendMessageDraft — your bot shows a typing bubble that updates in real-time as it generates. But the docs are confusing. Here's how to actually enable it 🧵
50,460 Aufrufe • vor 9 Monaten •via X (Twitter)
38 Kommentare

The docs say "toggle Threaded Mode in @BotFather" But if you've looked... there's no such option in the command interface. That's because it's ONLY in the BotFather Mini App 🤦

Here's what actually works: 1️⃣ Open (the mini app!) 2️⃣ Select your bot 3️⃣ Find and enable "Threaded Mode" 4️⃣ Set streamMode: "partial" in your bot config That's it. DM streaming will work after that if your're using Bot API

⚠️ Important notes: • Only works in private chats (DMs), NOT groups • Users see a draft bubble animating as you generate • Final message replaces the draft when done • Feature is ~1 month old, still rolling out

If you're using @openclaw (fka Clawdbot), just add this to your config: channels: telegram: streamMode: "partial" That's it! Moltbot handles the sendMessageDraft calls automatically once Threaded Mode is enabled in BotFather 🤖

Shoutout to @banteg for the breadcrumbs that led me here. Now go make your AI bots feel 10x more responsive 🐺 (and yes, I spent way too long researching why the toggle wasn't showing up lol)

@openclaw Interesting… what I was surprised by is the threads. And they all create new sessions My DMs used to be session main Now it’s session main threads ### Are all the threads still within mains context or are they all individual sessions?

@openclaw Individuals! Which is awesome

@openclaw the annoying thing is it always focuses on new chat each time. instead of existing tabs. and if you type there it creates a new thread.

@openclaw Yeah it's not the best implementation, I wish we had streaming without dicing topics @durov

@openclaw Wow! Thank you. The Threaded Mode itself is so useful (like having multiple conversations in ChatGPT). Streaming responses is a nice bonus.

@openclaw It definitely had its quirks

@openclaw Clawdbot is goated, everyone should definitely try it

@openclaw sendMessageDraft was buried in the docs, took me a while to find it actually works

@openclaw You really have a notification when your pet is drinking water ? Love this level of engineering

@openclaw Busted!

Already tried it for days! Noticed one quirk: during streaming, the message shows twice — rendered text on top, raw markdown below. The raw version disappears after streaming ends. Not sure yet if it's client-side rendering or how the bot implements the API. Anyone else seeing this behavior?

@moltbot I followed your steps, but any chats I send within a thread, OpenClaw replies in the "New Chat" tab. It does create new sessions (as expected) and looks normal in OpenClaw Control on my computer

@openclaw @steipete

@openclaw streaming bots on telegram are such a big upgrade

Enjoyed this thread? Give it a retweet and a follow! 🫡

@openclaw Inception, I thought your notification was for my fountain and it confused me

@moltbot This doesn't work anymore in the openclaw .30 update. Whatever I do or change, Both threads and streaming are not working anymore. (i had it working in the clawdbot 1st version).

@moltbot This was in my to-do list and I got this working today! Thanks for the find!

@openclaw Wow this is great

@openclaw In Molt I see a double copy of the message, I kept it stream off until this is more stable

@openclaw Curious, what model are you using?

@openclaw Tested with a few... enabled thinking for opus for this, because non thinking just flies this didn't matter

@openclaw Thank you! This is golden!

@openclaw Sub to @thursdai_pod 🫡 I love sharing all I learn

@openclaw All the AGI in the world and they couldn't find a better name than "moltbot."

@openclaw They did, and then crypto asshole sniped it

@openclaw And I thought IPv4 address exhaustion was a crisis. Here we are and only two names were remaining, Zitsels and Moltbot.

@openclaw @altryne looks like the defense brought your ai on chain and you are now receiving fees ..

@openclaw So cool!

@openclaw Oh yoooooooooo 👀

@openclaw I've been running on discord, is telegram better?

@openclaw This is huge for bot UX. Streaming changes everything.

@openclaw @bankrbot deploy CLAWD WOLFRED ticker CLAWDWOLFRED and send fee to @altryne
