Changelog¶
v3.5.0 — September 2026¶
Bot Chat History Retrieval (`get_bot_chat_history`): Allows bots to retrieve message history across private chats and groups through safe, high-speed 100-ID batch scanning.
Turbo Multi-Worker Media Transfers (`fast_download`): Download large files, videos, and documents at maximum network speed using multi-worker parallel chunk streaming.
Fluent `RichMessageBuilder` DSL: Construct styled rich messages with <tg-button-row>, expandable quotes, tables, and paragraphs effortlessly in Python.
AI Response Streaming (`stream_text` & `thinking`): Stream LLM tokens in real-time directly to Telegram drafts with animated thinking placeholders and stop controls.
Batch Purge Admin Tool (`purge_messages`): High-speed batch message deletion with automatic RPC chunking and rate-limit handling.
In-Memory Media Buffering (`download_media_to_memory`): Download media straight into an in-memory io.BytesIO buffer without disk I/O bottlenecks.
Multi-Client Orchestration (`MultiClient`): Manage and run multiple bots and user accounts concurrently in a single event loop.
v3.3.0 — June 2026¶
Bot API 10.1 (June 11, 2026) — Full Coverage
New Types¶
RichMessage— Received rich/article messageInputRichMessage— Send rich messagesInputRichMessageContent— Content block builderRichText variants (14 types):
RichText,RichTextBold,RichTextItalic,RichTextUnderline,RichTextStrikethrough,RichTextCode,RichTextUrl,RichTextEmailAddress,RichTextPhoneNumber,RichTextMarked,RichTextSubscript,RichTextSuperscript,RichTextAnchor,RichTextAnchorLinkRichBlock variants (19 types):
RichBlock,RichBlockParagraph,RichBlockPhoto,RichBlockVideo,RichBlockAudio,RichBlockVoiceNote,RichBlockAnimation,RichBlockTable,RichBlockTableCell,RichBlockList,RichBlockListItem,RichBlockSlideshow,RichBlockCollage,RichBlockBlockQuotation,RichBlockPullQuotation,RichBlockPreformatted,RichBlockSectionHeading,RichBlockCaption,RichBlockDetails,RichBlockDivider,RichBlockFooter,RichBlockMap,RichBlockMathematicalExpression,RichBlockThinking,RichBlockUnsupportedLink— Link type for poll option mediaChecklist— Checklist message typeChecklistTask— Individual checklist taskInputChecklistTask— Input for creating tasks
New Methods¶
send_rich_message()— Send a rich/article messagesend_rich_message_draft()— Save rich message as draftanswer_chat_join_request_query()— Answer join request from Mini Appsend_chat_join_request_web_app()— Open Mini App for join requestsget_owned_star_count()— Get bot’s owned star balanceappend_checklist_tasks()— Add tasks to existing checklisttoggle_checklist_task()— Check/uncheck a task
Updated Methods¶
edit_message_text()— Now acceptsrich_messageparameter
New Fields¶
rich_message— Rich message content on received messagessupports_join_request_queries— Bot supports join request queriesguard_bot— Channel’s anti-spam guard botquery_id— Join request query ID for Mini App flow
New Enums¶
MessageMediaType.LINK— Link media typeMessageMediaType.CHECKLIST— Checklist media type
Bug Fixes¶
Fixed all generated
ftmgram/raw/files incorrectly importing fromftmgraminstead offtmgramRemoved duplicate
get_business_account_star_balancemethodRemoved deprecated
send_reactionalias
v2.2.23 and earlier¶
See FTMGram releases for prior history.