Releases: danog/MadelineProto
Star payments, FilterBotCommand, layer 195
What's Changed
- Add full support for star payments with the new object-based DialogGiftStars, DialogStarGift updates by @mtalaeii in #1582
- Add support fo commands (automatically and optionally postfixed with the current bot's username) with FilterBotCommand by @mtalaeii in #1587
- Added the
getWaitTimeLeft
method andexpires
property to all RateLimitErrors, to obtain the exact time when the rate limit will expire by @danog - Update to layer 195
Fixes:
- Fix handling of rate limiting and other errors during file uploads, fixing upload hangs by @danog
- Now
wait()
ing a RateLimitError will only wait until the exact expiration date of the rate limit by @danog - Fix GOAWAY errors by bumping amphp/http-client
New Methods:
- messages.searchStickers
- bots.getAdminedBots
- bots.updateStarRefProgram
- payments.getConnectedStarRefBots
- payments.getConnectedStarRefBot
- payments.getSuggestedStarRefBots
- payments.connectStarRefBot
- payments.editConnectedStarRefBot
Changed Methods:
- Added referer param to contacts.resolveUsername
- Removed invoice_slug param from payments.botCancelStarsSubscription
New Constructors:
- starRefProgram
- connectedBotStarRef
- payments.connectedStarRefBots
- payments.suggestedStarRefBots
- starsAmount
- messages.foundStickersNotModified
- messages.foundStickers
Changed Constructors:
- Added subscription_until_date param to messageActionPaymentSentMe
- Added subscription_until_date param to messageActionPaymentSent
- Added starref_program param to userFull
- Added starref_commission_permille param to starsTransaction
- Added starref_peer param to starsTransaction
- Added starref_amount param to starsTransaction
Deleted Constructors:
- updateBotSubscriptionExpire
Full Changelog: 8.3.7...8.4.0
Layer 193
New Methods:
- messages.savePreparedInlineMessage
- messages.getPreparedInlineMessage
- bots.updateUserEmojiStatus
- bots.toggleUserEmojiStatusPermission
- bots.checkDownloadFileParams
- payments.botCancelStarsSubscription
Changed Methods:
- Added fullscreen param to messages.requestWebView
- Added fullscreen param to messages.requestSimpleWebView
- Added fullscreen param to messages.requestAppWebView
- Added fullscreen param to messages.requestMainWebView
New Constructors:
- updateBotSubscriptionExpire
- inputPrivacyKeyStarGiftsAutoSave
- privacyKeyStarGiftsAutoSave
- inputPrivacyValueAllowBots
- inputPrivacyValueDisallowBots
- privacyValueAllowBots
- privacyValueDisallowBots
- messages.botPreparedInlineMessage
- messages.preparedInlineMessage
- botAppSettings
Changed Constructors:
- Added bot_can_manage_emoji_status param to userFull
- Added app_settings param to botInfo
- Added subscription_period param to invoice
- Added fullscreen param to webViewResultUrl
- Added bot_canceled param to starsSubscription
- Added title param to starsSubscription
- Added photo param to starsSubscription
- Added invoice_slug param to starsSubscription
- Added birthday param to starGift
Fixes:
- Add proper error when uploading empty files
Layer 192, callback query fixes
New Methods:
- messages.viewSponsoredMessage
- messages.clickSponsoredMessage
- messages.reportSponsoredMessage
- messages.getSponsoredMessages
Changed Methods:
- Added allow_paid_floodskip param to messages.sendMessage
- Added allow_paid_floodskip param to messages.sendMedia
- Added allow_paid_floodskip param to messages.forwardMessages
- Added allow_paid_floodskip param to messages.sendMultiMedia
- Added peer param to stats.getBroadcastRevenueStats
- Removed channel param from stats.getBroadcastRevenueStats
- Added peer param to stats.getBroadcastRevenueWithdrawalUrl
- Removed channel param from stats.getBroadcastRevenueWithdrawalUrl
- Added peer param to stats.getBroadcastRevenueTransactions
- Removed channel param from stats.getBroadcastRevenueTransactions
- Added peer param to stories.searchPosts
Deleted Methods:
- channels.viewSponsoredMessage
- channels.getSponsoredMessages
- channels.clickSponsoredMessage
- channels.reportSponsoredMessage
New Constructors:
Changed Constructors:
- Added video_processing_pending param to message
- Added can_view_revenue param to userFull
- Added sent_messages param to updateDeleteScheduledMessages
- Added floodskip_number param to starsTransaction
- Added sold_out param to starGift
- Added first_sale_date param to starGift
- Added last_sale_date param to starGift
Fixes:
Full Changelog: 8.3.5...8.3.6
File upload fixes
Avoid inactivity timeouts when uploading files with RemoteUrl
Misc fixes
What's Changed
- Fix peer database issues by @danog
- Fix
ChannelParticipant::newParticipant
default value by @Piagrammist in #1558
New Contributors
- @Piagrammist made their first contribution in #1558
Full Changelog: 8.3.3...8.3.4
Layer 190
New Methods:
Changed Methods:
- Added option param to messages.report
- Removed reason param from messages.report
- Added option param to stories.report
- Removed reason param from stories.report
New Constructors:
- messageActionStarGift
- payments.paymentFormStarGift
- inputInvoiceStarGift
- starGift
- payments.starGiftsNotModified
- payments.starGifts
- userStarGift
- payments.userStarGifts
- messageReportOption
- reportResultChooseOption
- reportResultAddComment
- reportResultReported
Changed Constructors:
- Added message param to messageActionGiftPremium
- Added message param to messageActionGiftCode
- Added stargifts_count param to userFull
- Added message param to inputStorePaymentPremiumGiftCode
- Added stargift param to starsTransaction
Layer 188 and multiple fixes
Features:
- Update to layer 188
- AsyncOrm: Allow specifying custom serializers in OrmMappedArray attributes
Fixes:
- Support
@
s in FilterCommand - Clear entries from the username database when the corresponding peer database entry is removed
- Fix minor Poll wrapping bug
- Ensure typing actions are broadcasted to the group, not directed to the sender by @ging-dev in #1557
Changed Methods:
- Added media param to channels.clickSponsoredMessage
- Added fullscreen param to channels.clickSponsoredMessage
New Constructors:
Changed Constructors:
- Added alt_documents param to messageMediaDocument
- Removed alt_document param from messageMediaDocument
- Added video_codec param to documentAttributeVideo
New Contributors
Full Changelog: 8.3.1...8.3.2
Layer 187
Fixes:
- Fix getEventHandler when passing the class name of the main event handler class
- Allow passing no language tag in
<pre>
tags
Features:
- Update to layer 187
- Bump PHP version of docker image
New Methods:
New Constructors:
- messageActionPrizeStars
- updateBotPurchasedPaidMedia
- updatePaidReactionPrivacy
- channelAdminLogEventActionParticipantSubExtend
- inputStorePaymentStarsGiveaway
- prepaidStarsGiveaway
- starsGiveawayOption
- starsGiveawayWinnersOption
Changed Constructors:
- Added payload param to inputMediaPaidMedia
- Added stars param to messageMediaGiveaway
- Added stars param to messageMediaGiveawayResults
- Added stars param to messageActionGiveawayLaunch
- Added stars param to messageActionGiveawayResults
- Added sub_extend param to channelAdminLogEventsFilter
- Added stars_prize param to payments.giveawayInfoResults
- Added stars param to boost
- Added withdrawal_enabled param to broadcastRevenueBalances
- Added giveaway_post_id param to starsTransaction
editHide, broadcast improvements
Features:
- Add
editHide
field to Messages
Fixes:
- Pre-upload media when broadcasting for improved performance
- Improve cancellation logic
Broadcast fixes
This release fixes a broadcast issue, by starting the IPC server immediately when first creating a session, instead of waiting for the next restart.