Skip to content

Releases: danog/MadelineProto

Fix issue with ORM

08 Apr 14:55
Compare
Choose a tag to compare

This release fixes an issue with the ORM.

Re-add PHP 8.2 support

07 Apr 17:53
Compare
Choose a tag to compare

This release re-adds PHP 8.2 support, removing a deprecated polyfill for the DbArray class.

Switch to danog/AsyncOrm!

07 Apr 16:47
Compare
Choose a tag to compare

This release extracts MadelineProto's async ORM into a separate library, danog/AsyncOrm: a PHP async ORM based on AMPHP v3 and fibers!

danog/AsyncOrm supports MySQL, Redis, Postgres, features read and write-back caching, type-specific optimizations, and much more!

Among other news, the danog/tg-file-decoder library was also updated&modernized.

Also, the downloadRenameBot.php was updated to support downloading videos directly from YouTube (without using the disk!), here's the new repo: https://github.com/danog/downloadRenameBot/

Breaking changes:

  • Raise the minimum PHP version to 8.2.17.
  • Move all ORM classes to the danog\AsyncOrm namespace
  • Remove support for definition of ORM properties using $dbProperties, the new OrmMappedArray attribute should be used instead, see the new docs for more info and examples!
  • Modernized and updated danog/tg-file-decoder, switching to enums and readonly properties.
  • Use bot API IDs in all constructors returned by MadelineProto.
  • Finalize all methods in the event handler.
  • Enable strict static analysis for EventHandler.
  • Removed the JSON and STRING serializer types from the ORM settings, the correct serializer will now be chosen based on the type of the value specified in OrmKeyedArray.
  • Postgres/Redis MadelineProto instances need a manual database migration before upgrading (first updateSettings to the Memory backend, then upgrade, then updateSettings to Postgres/Redis); MySQL and Memory instances will be migrated automatically, no need to do anything.

Features:

New Methods:

Changed Methods:

New Constructors:

Read more

Switch to danog/AsyncOrm!

07 Apr 13:39
Compare
Choose a tag to compare

This release extracts MadelineProto's async ORM into a separate library, danog/AsyncOrm: a PHP async ORM based on AMPHP v3 and fibers!

danog/AsyncOrm supports MySQL, Redis, Postgres, features read and write-back caching, type-specific optimizations, and much more!

Among other news, the danog/tg-file-decoder library was also updated&modernized.

Also, the downloadRenameBot.php was updated to support downloading videos directly from YouTube (without using the disk!), here's the new repo: https://github.com/danog/downloadRenameBot/

Breaking changes:

  • Raise the minimum PHP version to 8.2.17.
  • Move all ORM classes to the danog\AsyncOrm namespace
  • Remove support for definition of ORM properties using $dbProperties, the new OrmMappedArray attribute should be used instead, see the new docs for more info and examples!
  • Modernized and updated danog/tg-file-decoder, switching to enums and readonly properties.
  • Use bot API IDs in all constructors returned by MadelineProto.
  • Finalize all methods in the event handler.
  • Enable strict static analysis for EventHandler.
  • Removed the JSON and STRING serializer types from the ORM settings, the correct serializer will now be chosen based on the type of the value specified in OrmKeyedArray.
  • Postgres/Redis MadelineProto instances need a manual database migration before upgrading (first updateSettings to the Memory backend, then upgrade, then updateSettings to Postgres/Redis); MySQL and Memory instances will be migrated automatically, no need to do anything.

Features:

New Methods:

Changed Methods:

New Constructors:

Read more

Bump inner version to regen layer

23 Feb 12:16
Compare
Choose a tag to compare
Revert "Bump"

This reverts commit 0295968f963d6fd7f0f058a56ef15f71d95422bc.

Fix memory leak

20 Feb 16:09
Compare
Choose a tag to compare

Fixes:

  • Fix memory leak found by @vtsykun
  • Fix usage of RemoteUrl in some conditions
  • Improve getUpdates

Features:

  • Update to layer 174

Misc:

  • Remove defaultTempAuthKeyExpiresIn setting, it should not be exposed to users

More bugfixes

09 Feb 19:26
Compare
Choose a tag to compare

Fixes:

  • Warn Termux users to move the session folder to $HOME
  • Fix ogg conversion with the phar version

Fix getDownloadLink

09 Feb 18:27
Compare
Choose a tag to compare

Fixes:

  • Fix filename of files downloaded using getDownloadLink

8.0.0-beta190

08 Feb 18:00
Compare
Choose a tag to compare

Features:

Fixes:

  • Multiple bugfixes

Layer 172, multiple new features and fixes

26 Jan 21:28
Compare
Choose a tag to compare

Features:

  • Add Poll support in simple event handler messages
  • Add topic and poll-related filters and simple filters
  • Add FilterCommandCaseInsensitive, FilterForwardedFrom, FilterRegexMatchAll, FilterTextContains, FilterTextContainsCaseInsensitive, FilterTextEnds, FilterTextEndsCaseInsensitive, FilterTextStarts, FilterTextStartsCaseInsensitive filters
  • Improve update coverage of existing filters, mainly FilterPeer now supports many more update types
  • FilterRegex now supports specifying flags and an offset
  • Add editReplyMarkup method to Messages
  • Add support for recording the incoming audio stream of a VoIP call with setOutput
  • Update to layer 172
  • Support more deep links and t.me links for getInfo, and all other methods

Fixes:

  • Multiple bugfixes and improvements
  • Fix getReply for secret chat messages and some other secret chat edge cases
  • Fix QR code login in certain conditions
  • Fix an edge case for webhost environments

New Methods:

Changed Methods:

New Constructors:

Changed Constructors: