More recent entries can be seen on the Telegram channel @MadelineProto!
MadelineProto was updated (8.0.0-beta115)!
Features:
- You can now get direct download links for or directly download stories, check out the open-source @tgstories_dl_bot to download any Telegram story!
- Added support for
parse_modeparsing for story methods. getReplynow simply returns null if the message doesn't reply to any other message.getReplynow has an optional parameter that can be used to filter the returned message type.- Added
isSelfUser(),isSelfBot()messages to check whether the current user is a user or a bot. - Improved IDE typehinting.
- CLI bots: you can now optionally specify a default download link URL (used by
getDownloadLink) in the settings. - Added
DialogMessagePinnedservice message with agetPinnedMessage()method.
Fixes:
- Fixed simple filters with service messages.
- Fixed IDE typehinting for
getEventHandler. - Fixed startAndLoopMulti.
- Tweaked the default drop timeout on media DCs to avoid timeout errors on slow networks.
- Now the admin list only contains user report peers.
- Make
markdownEscapemethod accessible. - Fixed
getDownloadLinkfor non-event-handler web IPC instances.
MadelineProto was updated (8.0.0-beta101)!
After introducing plugins », bound methods », filters », a built-in cron system », IPC support for the event handler » and automatic static analysis for event handler code » in beta100, beta101 brings some bugfixes and the getDownloadLink function!
Features:
- Added a
getDownloadLinkfunction, that can be used to fetch a download link for any file up to 4GB! - Added an
openFileAppendOnlyfunction, that can be used to asynchronously open a file in append-only mode!
Fixes:
- Improved the
markdownEscapefunction! - Translated even more MadelineProto UI elements!
- Improve the static analyzer.
- Made some fixes to simple filters.
- Relax markdown parser.
Introducing MadelineProto's biggest update yet, 8.0.0-beta100!
This version introduces plugins », bound methods », filters », a built-in cron system », IPC support for the event handler » and automatic static analysis for event handler code ».
See the following post for examples!
Other features:
- Thanks to the many translation contributors @ https://weblate.madelineproto.xyz/, MadelineProto is now localized in Hebrew, Persian, Kurdish, Uzbek, Russian, French and Italian!
- Added simplified
sendMessage,sendDocument,sendPhotomethods that return abstract Message objects with simplified properties and bound methods! - You can now use
Tools::callForkto fork a new green thread! - You can now automatically pin messages broadcasted using
broadcastMessages,broadcastForwardMessagesby using the newpin: trueparameter! - You can now use
sendMessageToAdminsto send messages to the bot's admin (the peers returned bygetReportPeers). - Added
wrapUpdate,wrapMessage,wrapMediamethods to wrap low-level MTProto updates into an abstracted Message object with bound methods! - The
waveformattribute ofVoiceobjects is now automatically encoded and decoded to an array of 100 integer values! - Added a custom
PeerNotInDbExceptionclass for "This peer is not present in the internal peer database" errors - Added a
labelproperty to the Button class, directly indicating the button label (instead of manually fetching it as an array key). - Added
isForummethod to check whether a given supergroup is a forum - Added an
entitiesToHtmlmethod to convert a message and a set of Telegram entities to an HTML string! - You can now use
reportMemoryProfile()to generate and send approfmemory profile to all report peers to debug the causes of high memory usage. - Added support for
pay,login_url,web_appandtg://user?id=buttons in bot API syntax! - Added a
getAdminIdsfunction that returns the IDs of the admin of the bot (equal to the peers returned by getReportPeers in the event handler). - Added a new
ParseModeenum! - Added support for HTML lists in parseMode!
- Fixed parsing of markdown code blocks!
Breaking changes:
- Switched to a custom markdown parser with bot API MarkdownV2 syntax, which differs from the previous Markdown syntax supported by parsedown.
- Markdown text can't contain HTML anymore.
Fixes:
- Fixed file uploads with ext-uv!
- Fixed file re-uploads!
- Improve background broadcasting with the broadcast API using a pre-defined list of
whitelistIDs! - Fixed a bug that caused updates to get paused if an exception is thrown during onStart.
- Broadcast IDs are now unique across multiple broadcasts, even if previous broadcasts already completed their ID will never be re-used.
- Now uploadMedia, sendMedia and upload can upload files from string buffers created using
ReadableBuffer. - Reduced memory usage during flood waits by tweaking config defaults.
- Reduced memory usage by clearing the min database automatically as needed.
- Automatically try caching all dialogs if a peer not found error is about to be thrown.
- Fixed some issues with pure phar installs.
- Fixed splitting of HTML and markdown messages
- Fixed formatting of multiline markdown codeblocks
- And many other performance improvements and bugfixes!