Posts of MadelineProto | Official Channel
Forwarded from MadelineProto PHAR
MadelineProto Layer 234 https://github.com/danog/MadelineProto/releases/tag/8.23.0 Phar: https://t.me/madelineprotophar/350 What's Changed Layer • Automatic build (layer 234) by @madelineproto-autobuild[bot] in https://github.com/danog/MadelineProto/pull/2037 Fixes • Web UI: go back to solid-js 1, fix the seroval alerts by @danog in https://github.com/danog/MadelineProto/pull/2036
Open in TelegramMadelineProto 8.20.1 was released! Among a plethora of fixes, the following major new features are present: - 10x faster file downloads (IGE decryption) and up to 90% faster sha256 hashes on webhosts (pure PHP)! - 250x faster file downloads and uploads on the official docker image thanks to the new MadelineCrypto extension, contributed by xtrime, with further performance improvements added by danog! - Rich message support! - Layer 233! - When using startAndLoopMulti, the web login UI now allows you to choose which session to log into! - Webhosts can now play the AAC audio of MP4 files in group calls, not just RTMP conferences, thanks pure PHP AAC decoder and OPUS encoder! - Windows IPC fixes! The official docker image already comes with MadelineCrypto preinstalled, but you can also install it on your own machine using PIE (the new version of PECL): pie install danog/madelinecrypto
Open in TelegramMoved MadelineProto release announcements to @madelineprotophar, to avoid cluttering this channel, which will only be used for the more important feature and bugfix announcements :)
Open in TelegramMadelineProto 8.13.3 https://github.com/danog/MadelineProto/releases/tag/8.13.3 Phar: https://t.me/madelineprotophar/300 What's Changed Fixes • startLive('me'): the live story has our ID as its poster by @danog in https://github.com/danog/MadelineProto/pull/1908 • Stream mode: follow RTMP streams in real time behind the edge, take chunks cut short as they are by @danog in https://github.com/danog/MadelineProto/pull/1909
Open in TelegramBtw MadelineProto's PHP docker image is autoupdated and already has a fix for at least some of the recent PHP vulns :))
Open in TelegramForwarded from Daniil Gentili
This pure PHP webradio bot is capable of streaming any YouTube video/livestream to any telegram channel livestream or group call! Use the official magnaluna instance @magicalcrazypony! Or upload the source code to your favorite free PHP webhost to host your own magnaluna (100% PHP webhost support, no ffmpeg/python needed!): https://t.me/MadelineProto/779 Powered by @MadelineProto!
Open in TelegramThis webradio bot is capable of streaming any YouTube video/livestream to any telegram channel livestream or group call, with 100% webhost support, no ffmpeg needed! Upload this to your favorite free PHP webhost to host your own magnaluna, or use the official magnaluna instance @magicalcrazypony! Source code: https://GitHub.com/danog/magnaluna Powered by @MadelineProto!
Open in TelegramMadelineProto 8.11.1 https://github.com/danog/MadelineProto/releases/tag/8.11.1 Phar: https://t.me/madelineprotophar/283 What's Changed Fixes • Ship the web UI templates and assets in the phar by @danog in https://github.com/danog/MadelineProto/pull/1840
Open in TelegramMadelineProto 8.11.0 https://github.com/danog/MadelineProto/releases/tag/8.11.0 Phar: https://t.me/madelineprotophar/282 What's Changed Features • Autostart the IPC server on Windows by @danog in https://github.com/danog/MadelineProto/pull/1820 • Support fake TLS MTProxy secrets (ee) (#1723) by @danog in https://github.com/danog/MadelineProto/pull/1804 Fixes • Don't block RPC errors on their report, announce our video state only when it changes by @danog in https://github.com/danog/MadelineProto/pull/1818 • Don't hang the auth key binding after a late duplicate DH answer by @danog in https://github.com/danog/MadelineProto/pull/1816 • Fix replyToMsgId of the messages we send (#1663) by @danog in https://github.com/danog/MadelineProto/pull/1790 • Fix loading sessions saved before 8.4.7 (Undefined property MTProto::$authorized) by @danog in https://github.com/danog/MadelineProto/pull/1822 • Self-restarts: use the server of a session that is served, don't wait for its lock by @danog in https://github.com/danog/MadelineProto/pull/1823 • Resolve min peers through the min database, and cached usernames that can't be used again by @danog in https://github.com/danog/MadelineProto/pull/1821 • IPC: don't spin on a dying server, close the fds of worker startups by @danog in https://github.com/danog/MadelineProto/pull/1813 • Don't bypass the proxies with direct connections when they fail by @danog in https://github.com/danog/MadelineProto/pull/1825 • Fix replaced loggers truncating logs and FLOOD_WAITs copying authorizations by @danog in https://github.com/danog/MadelineProto/pull/1828 • Require AsyncOrm 1.1.6 by @danog in https://github.com/danog/MadelineProto/pull/1826 Full Changelog: https://github.com/danog/MadelineProto/compare/8.10.0...8.11.0
Open in TelegramMadelineProto Layer 231 https://github.com/danog/MadelineProto/releases/tag/8.10.0 What's Changed Layer • Automatic build (layer 231) by @madelineproto-autobuild[bot] in https://github.com/danog/MadelineProto/pull/1809 Features • Web UI v3: liquid glass (includes #1761) by @danog in https://github.com/danog/MadelineProto/pull/1767 • Expose location, live location and venue messages (#1593) by @danog in https://github.com/danog/MadelineProto/pull/1802 • Allow cancelling getUpdates (#1654) by @danog in https://github.com/danog/MadelineProto/pull/1801 Fixes • IPC: redundant workers exit quietly by @danog in https://github.com/danog/MadelineProto/pull/1777 • Wrap messageEntityFormattedDate, and entity types from newer layers by @danog in https://github.com/danog/MadelineProto/pull/1779 • IPC: clients wait while the session is loading by @danog in https://github.com/danog/MadelineProto/pull/1778 • Don't keep or act on calls and group calls this session never took part in by @danog in https://github.com/danog/MadelineProto/pull/1763 • Fix the conversion of Telegram Desktop sessions (#1647) by @danog in https://github.com/danog/MadelineProto/pull/1794 • Fix stale user statuses in getInfo (#1547) by @danog in https://github.com/danog/MadelineProto/pull/1793 • Fix downloadToBrowser continuing after the browser closed the connection (#1219) by @danog in https://github.com/danog/MadelineProto/pull/1798 • Fix the speed and time passed to upload and download progress callbacks (#1553) by @danog in https://github.com/danog/MadelineProto/pull/1797 • Don't reconnect from DataCenter::__wakeup by @danog in https://github.com/danog/MadelineProto/pull/1781 • Restore inherited readonly properties from their declaring class by @danog in https://github.com/danog/MadelineProto/pull/1805 • Fix IPC startup fibers doing file I/O after the client exits (UVLoop handle is already closed) by @danog in https://github.com/danog/MadelineProto/pull/1807 • Leave group calls that ended while we weren't told, like TDLib by @danog in https://github.com/danog/MadelineProto/pull/1808 • Support telegram-entities 1.1.0 (Bot API 10 entity names and whitespace) by @danog in https://github.com/danog/MadelineProto/pull/1799 Full Changelog: https://github.com/danog/MadelineProto/compare/8.9.0...8.10.0
Open in Telegram• The properties removed since a session was saved are dropped when loading it, instead of being kept forever as dynamic properties (deprecated since PHP 8.2): every private call carried the state of the old libtgvoip engine. Private calls restored as running from those versions are ended. • Copying the authorization to another DC exports it again when the import fails with AUTH_BYTES_INVALID (another process of the same account exporting at the same time). • IPC: a callback returning after its call returned no longer logs "The channel was already closed!" as an error. • Plugins referenced more than once no longer cause "Undefined array key" errors, by @junwei-qu in https://github.com/danog/MadelineProto/pull/1769 • No empty hint in the 2FA password prompt when the account has none. Internal: • CI: the session tests run in parallel lanes, each with its own authorizations; the phar is built at once with the tests and released once all of them passed; the bot logs in with an exported authorization instead of its token (the build of 8.8.9 hit a FLOOD_WAIT). What's Changed Features • Add support for thumbnail to media class by @mtalaeii in https://github.com/danog/MadelineProto/pull/1594 Fixes • Fix Bot API keyboard markup conversion for MTProto Layer 231 by @xcgu in https://github.com/danog/MadelineProto/pull/1759 • Phar: give every build its own alias, so php-fpm's opcache can't run the previous release by @danog in https://github.com/danog/MadelineProto/pull/1760 • Web: end the request that starts a bot even after output was sent by @danog in https://github.com/danog/MadelineProto/pull/1765 • Drop the state of removed properties when unserializing old sessions by @danog in https://github.com/danog/MadelineProto/pull/1762 • EventHandler: plugin's internalStart returns empty array by @junwei-qu in https://github.com/danog/MadelineProto/pull/1769 • MTProto: unserialize with the default format again, so the objects of the session see it when they wake up by @danog in https://github.com/danog/MadelineProto/pull/1768 New Contributors • @junwei-qu made their first contribution in https://github.com/danog/MadelineProto/pull/1769 Full Changelog: https://github.com/danog/MadelineProto/compare/8.8.9...8.9.0
Open in TelegramMadelineProto 8.9.0 https://github.com/danog/MadelineProto/releases/tag/8.9.0 MadelineProto 8.9.0 makes the thumbnails of every media downloadable, sandboxes the files served to browsers, hides the secrets typed in the CLI login, and fixes clicking keyboard buttons, the forum topic methods, the phar updates on php-fpm and several session, update loop and IPC issues. Features: • Thumbnails are media: Media::$thumbs and Media::$videoThumbs now hold Thumbnail and VideoThumbnail objects, which can be downloaded, streamed, linked with getDownloadLink() and reused as upload sources or as thumb:, with bot API file IDs, by @mtalaeii in https://github.com/danog/MadelineProto/pull/1594 and @danog. The stripped or cached size of a media, and the thumbnail of secret chat media, is an InlineThumbnail in $thumbs too, served from memory without contacting Telegram (it replaces $thumb, $thumbWidth and $thumbHeight). Photos get width and height, and sticker thumbnails are WEBP. • New Files::setSandboxDownloads() setting, to turn off the sandboxing of the files served to browsers (see below), for websites serving trusted files that must be shown as their pages (HTML, SVG, PDF...). • The CLI login hides the bot token, API hash, 2FA password and login code as they're typed (bot tokens only show their bot ID), like the web login, which now also hides the token, the code and the API hash. Fixes: • Files served to browsers can't run as pages of the website serving them: the download script (getDownloadLink()) and downloadToResponse() used the MIME type and the name given by whoever sent the file on Telegram, or by the query string of the download script, so a link could serve HTML with scripts from the website hosting the download script, and a quote in the name broke out of the Content-Disposition header. Every file is now served with Content-Security-Policy: sandbox, X-Content-Type-Options: nosniff and a normalized MIME type; only media (images but SVG, video, audio) and plain text are shown inline, everything else is downloaded as an attachment, and the name is escaped. • Clicking the buttons of received keyboards works again: since layer 229 (8.8.8), buttons carry their action in their type, and Button::click() did nothing. • Bot API keyboards are converted correctly by @xcgu in https://github.com/danog/MadelineProto/pull/1759 and @danog: games, poll requests without a type, forward_text, the rows after the first one, and inline buttons without an action (now refused with an explicit error). • createTopic(), editTopic(), openTopic(), closeTopic() and deleteTopic() of group messages always failed: they called forum methods that left the layer. Calls of the old channels.* forum methods are now sent as the messages.* ones. DialogSetChatWallPaper gets the right $same and a new $forBoth, and the peer of help.promoData is extracted. • Phar updates on php-fpm with opcache.validate_timestamps=0: once a new release was downloaded, opcache kept running the code of the previous one, which saw that an update was required on every request, until php-fpm was restarted. Every phar build now has its own alias, and madeline.php is invalidated in opcache once rewritten. • The phar no longer waits up to 18 seconds at startup when phar.madelineproto.xyz can't be reached. • The web request that starts a bot is ended even when something was output before (an echo in onStart(), a warning with display_errors=On): the client waited for as long as the bot ran, in https://github.com/danog/MadelineProto/pull/1765. • A timeout of help.getCdnConfig in the update loops no longer ends the process. • Sessions saved while waiting for the state of a connection failed after loading with "Typed property AsyncWaiter::$waitFor must not be accessed before initialization", and a state reached twice during a wait threw "Operation is no longer pending".
Open in TelegramMadelineProto can now stream video and audio into channel live streams as well as group calls (pure PHP, with 100% webhost compatibility!) You can test it out using the brand new @magicalcrazypony bot!
Open in Telegram• New sessions with Prometheus metrics enabled no longer fail to start their IPC worker with "Address already in use". • importAuthorization() uses the imported DC by default, not DC 1 (which failed with "No info for DC 1" on the test servers). • Round videos with an audio attribute (Telegram now adds one with the waveform) are video notes again, not audio files. • Uploads of bot API file IDs are resumed after a restart. • Profile photos from bot API file IDs are downloaded in the size of the file ID (not always the big one), even when the peer isn't in the database. Internal: • The CI moved from Woodpecker to GitHub Actions: the full test suite runs on pushes and tags (with user sessions on Telegram's test servers), pull requests run what needs no secret, a daily build submits the schema and docs updates as pull requests, and releases are drafted, described and announced automatically from the release labels of pull requests. What's Changed Other changes • Update ObfuscatedStream.php by @bertmsk in https://github.com/danog/MadelineProto/pull/1717 • Fix by @xcgu in https://github.com/danog/MadelineProto/pull/1756 Full Changelog: https://github.com/danog/MadelineProto/compare/8.8.8...8.8.9
Open in Telegram