1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 17:24:40 +01:00
MadelineProto/CHANGELOG.md

88 lines
6.2 KiB
Markdown
Raw Permalink Normal View History

2023-08-20 23:45:30 +02:00
More recent entries can be seen on the Telegram channel [@MadelineProto](https://t.me/MadelineProto)!
---
MadelineProto was updated (8.0.0-beta115)!
2023-07-21 17:46:36 +02:00
2023-07-21 19:21:34 +02:00
Features:
2023-07-21 21:37:59 +02:00
- You can now get direct download links for or **directly download** stories, check out the [open-source](https://github.com/danog/MadelineProto/blob/v8/examples/tgstories_dl_bot.php) [@tgstories_dl_bot](https://t.me/tgstories_dl_bot) to download any Telegram story!
- Added support for `parse_mode` parsing for story methods.
2023-07-21 19:21:34 +02:00
- `getReply` now simply returns null if the message doesn't reply to any other message.
- `getReply` now has an optional parameter that can be used to filter the returned message type.
2023-07-21 20:02:01 +02:00
- Added `isSelfUser()`, `isSelfBot()` messages to check whether the current user is a user or a bot.
2023-07-21 19:21:34 +02:00
- Improved IDE typehinting.
- CLI bots: you can now optionally specify a default download link URL (used by `getDownloadLink`) in the settings.
2023-07-21 17:46:36 +02:00
- Added `DialogMessagePinned` service message with a `getPinnedMessage()` method.
Fixes:
- Fixed simple filters with service messages.
2023-07-21 17:49:55 +02:00
- Fixed IDE typehinting for `getEventHandler`.
2023-07-21 21:37:59 +02:00
- Fixed startAndLoopMulti.
2023-07-21 17:49:55 +02:00
- Tweaked the default drop timeout on media DCs to avoid timeout errors on slow networks.
2023-07-21 17:46:36 +02:00
- Now the admin list only contains user report peers.
2023-07-21 21:37:59 +02:00
- Make `markdownEscape` method accessible.
- Fixed `getDownloadLink` for non-event-handler web IPC instances.
2023-07-21 17:46:36 +02:00
---
MadelineProto was updated (8.0.0-beta101)!
After introducing [plugins »](https://docs.madelineproto.xyz/docs/PLUGINS.html), [bound methods »](https://docs.madelineproto.xyz/docs/UPDATES.html#bound-methods), [filters »](https://docs.madelineproto.xyz/docs/FILTERS.html), [a built-in cron system »](https://docs.madelineproto.xyz/docs/UPDATES.html#cron), [IPC support for the event handler »](https://docs.madelineproto.xyz/docs/UPDATES.html#persisting-data-and-ipc) and [automatic static analysis for event handler code »](https://docs.madelineproto.xyz/docs/UPDATES.html#automatic-static-analysis) in beta100, beta101 brings some bugfixes and the `getDownloadLink` function!
Features:
- Added a `getDownloadLink` function, that can be used to fetch a download link for any file up to 4GB!
- Added an `openFileAppendOnly` function, that can be used to asynchronously open a file in append-only mode!
Fixes:
- Improved the `markdownEscape` function!
- Translated even more MadelineProto UI elements!
2023-07-16 16:07:49 +02:00
- Improve the static analyzer.
2023-07-16 15:34:26 +02:00
- Made some fixes to simple filters.
2023-07-16 16:07:49 +02:00
- Relax markdown parser.
---
2023-07-14 18:29:20 +02:00
Introducing MadelineProto's biggest update yet, 8.0.0-beta100!
2023-07-08 17:46:45 +02:00
2023-07-15 16:34:54 +02:00
This version introduces [plugins »](https://docs.madelineproto.xyz/docs/PLUGINS.html), [bound methods »](https://docs.madelineproto.xyz/docs/UPDATES.html#bound-methods), [filters »](https://docs.madelineproto.xyz/docs/FILTERS.html), [a built-in cron system »](https://docs.madelineproto.xyz/docs/UPDATES.html#cron), [IPC support for the event handler »](https://docs.madelineproto.xyz/docs/UPDATES.html#persisting-data-and-ipc) and [automatic static analysis for event handler code »](https://docs.madelineproto.xyz/docs/UPDATES.html#automatic-static-analysis).
2023-07-14 18:29:20 +02:00
2023-07-15 16:34:54 +02:00
See the [following post](https://t.me/MadelineProto/630) for examples!
2023-07-14 18:29:20 +02:00
Other features:
2023-07-13 16:40:56 +02:00
- Thanks to the many translation contributors @ https://weblate.madelineproto.xyz/, MadelineProto is now localized in Hebrew, Persian, Kurdish, Uzbek, Russian, French and Italian!
2023-07-15 17:55:36 +02:00
- Added simplified `sendMessage`, `sendDocument`, `sendPhoto` methods that return abstract [Message](https://docs.madelineproto.xyz/PHP/danog/MadelineProto/EventHandler/Message.html) objects with simplified properties and bound methods!
2023-07-08 21:42:18 +02:00
- You can now use `Tools::callFork` to fork a new green thread!
- You can now automatically pin messages broadcasted using `broadcastMessages`, `broadcastForwardMessages` by using the new `pin: true` parameter!
2023-07-13 16:40:56 +02:00
- You can now use `sendMessageToAdmins` to send messages to the bot's admin (the peers returned by `getReportPeers`).
2023-07-14 18:29:20 +02:00
- Added `wrapUpdate`, `wrapMessage`, `wrapMedia` methods to wrap low-level MTProto updates into an abstracted Message object with bound methods!
2023-07-08 17:46:45 +02:00
- The `waveform` attribute of `Voice` objects is now automatically encoded and decoded to an array of 100 integer values!
2023-07-14 18:29:20 +02:00
- Added a custom `PeerNotInDbException` class for "This peer is not present in the internal peer database" errors
2023-07-08 17:46:45 +02:00
- Added a `label` property to the Button class, directly indicating the button label (instead of manually fetching it as an array key).
- Added `isForum` method to check whether a given supergroup is a forum
2023-07-14 18:29:20 +02:00
- Added an `entitiesToHtml` method to convert a message and a set of Telegram entities to an HTML string!
2023-07-08 17:46:45 +02:00
- You can now use `reportMemoryProfile()` to generate and send a `pprof` memory profile to all report peers to debug the causes of high memory usage.
2023-07-09 15:58:03 +02:00
- Added support for `pay`, `login_url`, `web_app` and `tg://user?id=` buttons in bot API syntax!
2023-07-14 18:29:20 +02:00
- Added a `getAdminIds` function that returns the IDs of the admin of the bot (equal to the peers returned by getReportPeers in the event handler).
2023-07-15 16:34:54 +02:00
- Added a new `ParseMode` enum!
- 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](https://core.telegram.org/bots/api#markdownv2-style) syntax, which differs from the previous Markdown syntax supported by parsedown.
- Markdown text can't contain HTML anymore.
2023-07-08 17:46:45 +02:00
Fixes:
2023-07-08 21:42:18 +02:00
- Fixed file uploads with ext-uv!
2023-07-11 20:23:34 +02:00
- Fixed file re-uploads!
2023-07-08 17:46:45 +02:00
- Improve background broadcasting with the broadcast API using a pre-defined list of `whitelist` IDs!
2023-07-11 20:23:34 +02:00
- Fixed a bug that caused updates to get paused if an exception is thrown during onStart.
2023-07-08 17:46:45 +02:00
- 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`.
2023-07-14 18:29:20 +02:00
- 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.
2023-07-15 16:34:54 +02:00
- Fixed splitting of HTML and markdown messages
- Fixed formatting of multiline markdown codeblocks
2023-07-14 18:29:20 +02:00
- And many other performance improvements and bugfixes!