Skip to content

Releases: danog/MadelineProto

Minor entity fixes

22 Apr 15:36
Compare
Choose a tag to compare

Minor fixes to the telegram styled text entity conversion module.

Fix performance issue

21 Apr 13:31
Compare
Choose a tag to compare

Fixes:

  • Fix performance issue caused by excessive GC-ing
  • Fix Message::forward

sendVideo/sendAudio methods, and much more!

21 Apr 12:03
Compare
Choose a tag to compare

MadelineProto 8.0.0-beta200 introduces new simple sendVideo, sendAudio, sendVoice, sendSticker, sendGif, sendDocumentPhoto methods that automatically extract duration, thumbnails and other metadata from audio and video files!

Also, sendDocument now supports automatic mime type detection for secret chats.

Additionally, Markdown and HTML parsing functionality was extracted in a separate library with bot API support, https://github.com/danog/telegram-entities!

Features:

  • Add a new scheduled flag to the Message class for scheduled messages
  • Split the markdown and HTML parser into a separate library, https://github.com/danog/telegram-entities
  • Add new simple sendVideo, sendAudio, sendVoice, sendSticker, sendGif, sendDocumentPhoto methods and the Message::replyXXX variants that automatically extract duration, thumbnails and other metadata from audio and video files!
  • sendDocument now supports automatic mime type detection for secret chats.

Fixes:

  • Fix getPwrChat
  • Fix methods that use legacy chats
  • Multiple other bug fixes

Multiple fixes

11 Apr 19:48
Compare
Choose a tag to compare

Fixes:

  • Fix issue with the peer database caused by the ORM migration (a relogin is recommended to fix peer database issues)
  • Fix an issue where ReadableBuffers and other streams could not be used when uploading stories in certain conditions
  • Move legacy polyfill classes to namespace to fix composer issues

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