Releases: danog/MadelineProto
Fixes
Fixes:
- Fix upload callbacks in the send* methods
- Fix issue with plugins in a phar
Minor entity fixes
Minor fixes to the telegram styled text entity conversion module.
Fix performance issue
Fixes:
- Fix performance issue caused by excessive GC-ing
- Fix Message::forward
sendVideo/sendAudio methods, and much more!
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
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
This release fixes an issue with the ORM.
Re-add PHP 8.2 support
This release re-adds PHP 8.2 support, removing a deprecated polyfill for the DbArray class.
Switch to danog/AsyncOrm!
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 newOrmMappedArray
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:
- Update to layer 177!
- Add support for the stable versions of amphp/mysql, amphp/postgres through https://github.com/danog/AsyncOrm!
New Methods:
- invokeWithBusinessConnection
- account.updateBusinessWorkHours
- account.updateBusinessLocation
- account.updateBusinessGreetingMessage
- account.updateBusinessAwayMessage
- account.updateConnectedBot
- account.getConnectedBots
- account.getBotBusinessConnection
- account.updateBusinessIntro
- account.toggleConnectedBotPaused
- account.disablePeerConnectedBot
- account.updateBirthday
- account.createBusinessChatLink
- account.editBusinessChatLink
- account.deleteBusinessChatLink
- account.getBusinessChatLinks
- account.resolveBusinessChatLink
- account.updatePersonalChannel
- contacts.getBirthdays
- messages.getQuickReplies
- messages.reorderQuickReplies
- messages.checkQuickReplyShortcut
- messages.editQuickReplyShortcut
- messages.deleteQuickReplyShortcut
- messages.getQuickReplyMessages
- messages.sendQuickReplyMessages
- messages.deleteQuickReplyMessages
- messages.toggleDialogFilterTags
- messages.getMyStickers
- help.getTimezonesList
- channels.reportSponsoredMessage
- channels.restrictSponsoredMessages
- stickers.replaceSticker
- stats.getBroadcastRevenueStats
- stats.getBroadcastRevenueWithdrawalUrl
- stats.getBroadcastRevenueTransactions
- smsjobs.isEligibleToJoin
- smsjobs.join
- smsjobs.leave
- smsjobs.updateSettings
- smsjobs.getStatus
- smsjobs.getSmsJob
- smsjobs.finishJob
- fragment.getCollectibleInfo
Changed Methods:
- Added quick_reply_shortcut param to messages.sendMessage
- Added quick_reply_shortcut param to messages.sendMedia
- Added quick_reply_shortcut param to messages.forwardMessages
- Added quick_reply_shortcut param to messages.sendInlineBotResult
- Added quick_reply_shortcut_id param to messages.editMessage
- Added business_connection_id param to messages.uploadMedia
- Added quick_reply_shortcut param to messages.sendMultiMedia
- Added for_personal param to channels.getAdminedPublicChannels
- Removed animated param from stickers.createStickerSet
- Removed videos param from stickers.createStickerSet
New Constructors:
- messageActionRequestedPeerSentMe
- updateSmsJob
- updateQuickReplies
- updateNewQuickReply
- updateDeleteQuickReply
- updateQuickReplyMessage
- updateDeleteQuickReplyMessages
- updateBotBusinessConnect
- updateBotNewBusinessMessage
- updateBotEditBusinessMessage
- updateBotDeleteBusinessMessage
- inputPrivacyKeyBirthday
- privacyKeyBirthday
- [inputPrivacyValueAllowPremium](https://docs.madelinepro...
Switch to danog/AsyncOrm!
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 newOrmMappedArray
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:
- Update to layer 177!
- Add support for the stable versions of amphp/mysql, amphp/postgres through https://github.com/danog/AsyncOrm!
New Methods:
- invokeWithBusinessConnection
- account.updateBusinessWorkHours
- account.updateBusinessLocation
- account.updateBusinessGreetingMessage
- account.updateBusinessAwayMessage
- account.updateConnectedBot
- account.getConnectedBots
- account.getBotBusinessConnection
- account.updateBusinessIntro
- account.toggleConnectedBotPaused
- account.disablePeerConnectedBot
- account.updateBirthday
- account.createBusinessChatLink
- account.editBusinessChatLink
- account.deleteBusinessChatLink
- account.getBusinessChatLinks
- account.resolveBusinessChatLink
- account.updatePersonalChannel
- contacts.getBirthdays
- messages.getQuickReplies
- messages.reorderQuickReplies
- messages.checkQuickReplyShortcut
- messages.editQuickReplyShortcut
- messages.deleteQuickReplyShortcut
- messages.getQuickReplyMessages
- messages.sendQuickReplyMessages
- messages.deleteQuickReplyMessages
- messages.toggleDialogFilterTags
- messages.getMyStickers
- help.getTimezonesList
- channels.reportSponsoredMessage
- channels.restrictSponsoredMessages
- stickers.replaceSticker
- stats.getBroadcastRevenueStats
- stats.getBroadcastRevenueWithdrawalUrl
- stats.getBroadcastRevenueTransactions
- smsjobs.isEligibleToJoin
- smsjobs.join
- smsjobs.leave
- smsjobs.updateSettings
- smsjobs.getStatus
- smsjobs.getSmsJob
- smsjobs.finishJob
- fragment.getCollectibleInfo
Changed Methods:
- Added quick_reply_shortcut param to messages.sendMessage
- Added quick_reply_shortcut param to messages.sendMedia
- Added quick_reply_shortcut param to messages.forwardMessages
- Added quick_reply_shortcut param to messages.sendInlineBotResult
- Added quick_reply_shortcut_id param to messages.editMessage
- Added business_connection_id param to messages.uploadMedia
- Added quick_reply_shortcut param to messages.sendMultiMedia
- Added for_personal param to channels.getAdminedPublicChannels
- Removed animated param from stickers.createStickerSet
- Removed videos param from stickers.createStickerSet
New Constructors:
- messageActionRequestedPeerSentMe
- updateSmsJob
- updateQuickReplies
- updateNewQuickReply
- updateDeleteQuickReply
- updateQuickReplyMessage
- updateDeleteQuickReplyMessages
- updateBotBusinessConnect
- updateBotNewBusinessMessage
- updateBotEditBusinessMessage
- updateBotDeleteBusinessMessage
- inputPrivacyKeyBirthday
- privacyKeyBirthday
- [inputPrivacyValueAllowPremium](https://docs.madelinepro...
Bump inner version to regen layer
Revert "Bump" This reverts commit 0295968f963d6fd7f0f058a56ef15f71d95422bc.