stream_text()

async Client.stream_text(chat_id: int | str, stream, chunk_interval: float = 0.15, placeholder: str = 'Thinking...', can_stop: bool = True, reply_to_message_id: int | None = None)

Stream real-time AI tokens directly to chat using native Telegram drafts.

Stream AI response tokens token-by-token in real-time to chat using native Telegram drafts.