2023-07-08 17:46:45 +02:00
MadelineProto was updated (8.0.0-beta100)!
Features:
- Thanks to the many translation contributors @ https://weblate.madelineproto.xyz/, MadelineProto is now fully localized in Hebrew, Persian, Kurdish, Uzbek and Italian, with WIP translations in Russian and French!
2023-07-08 21:42:18 +02:00
- You can now use `Tools::callFork` to fork a new green thread!
2023-07-09 15:42:08 +02:00
- You can now automatically pin messages broadcasted using `broadcastMessages` , `broadcastForwardMessages` by using the new `pin: true` parameter!
2023-07-09 18:07:23 +02:00
- You can now use `@admin` to send messages to the bot's admin, which will be the first peer returned by `getReportPeers` .
- Added `wrapUpdate` , `wrapMessage` , `wrapMedia`
2023-07-09 18:13:37 +02:00
- Added `Cron`
2023-07-09 18:07:23 +02:00
- Added plugins, filters, simple filters
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!
- Added a custom PeerNotInDbException class for "This peer is not present in the internal peer database" errors
- 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
- Added `entitiesToHtml` method to convert a message and a set of Telegram entities to an HTML string!
- 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-10 18:42:58 +02:00
- Added a `getAdmin` function that returns the ID of the admin of the bot (which is equal to the first peer returned by getReportPeers in the event handler).
2023-07-10 19:23:52 +02:00
- getPlugin can now be used from IPC clients!
2023-07-10 21:15:35 +02:00
- `getReply` , `sendMessage` , `reply`
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-08 17:46:45 +02:00
- Many performance improvements and bugfixes!
- Improve background broadcasting with the broadcast API using a pre-defined list of `whitelist` IDs!
- Broadcast IDs are now unique across multiple broadcasts, even if previous broadcasts already completed their ID will never be re-used.
2023-07-09 17:23:54 +02:00
- Now uploadMedia, sendMedia and upload can upload files from string buffers created using `ReadableBuffer` .
2023-07-09 14:54:36 +02:00
- Reduce memory usage during flood waits by tweaking config defaults.
2023-07-09 15:18:17 +02:00
- Reduce memory usage by clearing the min database automatically as needed.
2023-07-09 17:43:35 +02:00
- Automatically try caching all dialogs if a peer not found error is about to be thrown
2023-07-10 10:12:46 +02:00
- Fix some issues with pure phar installs