Releases: danog/MadelineProto
RPC error classes, default cancellations, IPC fixes
Features:
- Add
\danog\MadelineProto\RPCError\RateLimitError
- Represents a generic rate limiting RPC (FLOOD_WAIT_, FLOOD_PREMIUM_WAIT_, etc) error returned by telegram, extendsRPCErrorException
. - Add
\danog\MadelineProto\RPCError\TimeoutError
- Represents a request timeout RPC error returned by telegram (as opposed to one returned by MadelineProto, which will be an\Amp\TimeoutException
). - Add over 65 more RPC errors in the
danog\MadelineProto\RPCError
namespace that extendRPCErrorException
, to allow usage of specialized catch blocks for the most common RPC errors, instead of just catchingRPCErrorException
and checking$e->rpc
. - Improve docker image defaults.
- Add support for invokeWithBusinessConnection via the
businessConnectionId
parameter on supported methods.
Fixes:
- Handle
FLOOD_PREMIUM_WAIT_
errors during file operations. - Automatically refresh peer info on bot_info_version changes and updatePeerBlocked updates.
- Fix issues with reverse IPC method calls.
- Multiple other bugfixes.
Layer 181
Updated to layer 181 (this is a minor release because new features in the low-level API are not covered by the BC promise).
Features:
- Add chinese translation!
Fixes:
- Fix an issue where some participant flags might not get returned by getPwrChat
- Change error reporting endpoint
New Methods:
- invokeWithGooglePlayIntegrity
- invokeWithApnsSecret
- messages.getAvailableEffects
- messages.editFactCheck
- messages.deleteFactCheck
- messages.getFactCheck
- channels.searchPosts
- payments.getStarsTopupOptions
- payments.getStarsStatus
- payments.getStarsTransactions
- payments.sendStarsForm
- payments.refundStarsCharge
Changed Methods:
- Added reason param to auth.resendCode
- Added play_integrity_token param to auth.requestFirebaseSms
- Added effect param to messages.sendMessage
- Added effect param to messages.sendMedia
- Added effect param to messages.sendMultiMedia
New Constructors:
- updateBroadcastRevenueTransactions
- updateStarsBalance
- payments.paymentFormStars
- payments.paymentReceiptStars
- inputInvoiceStars
- inputStorePaymentStars
- availableEffect
- messages.availableEffectsNotModified
- messages.availableEffects
- factCheck
- starsTransactionPeerUnsupported
- starsTransactionPeerAppStore
- starsTransactionPeerPlayMarket
- starsTransactionPeerPremiumBot
- starsTransactionPeerFragment
- starsTransactionPeer
- starsTopupOption
- starsTransaction
- payments.starsStatus
Changed Constructors:
- Added effect param to message
- Added factcheck param to message
- Added collapsed param to messageEntityBlockquote
- Added play_integrity_nonce param to auth.sentCodeTypeFirebaseSms
Grafana dashboard
This release introduces an official Grafana dashboard for MadelineProto!
See here for more info on how to configure the Prometheus metrics endpoint and Grafana dashboard!
Features:
- Official grafana dashboard, powered by danog/better-prometheus!
- Extract bot API dialog ID handling logic into a separate library, danog/tg-dialog-id!
- Add a previously missing
$deleteHistory
flag todiscardSecretChat
! - Add messages.getEmojiStickerGroups method
Fixes:
- Fix a possible bug in sendVideo
- Fix a possible bug in parseMode parsing
- Fix SecretMessage::delete
- Fix passing of seekable streams to IPC methods
- Other minor bugfixes
- Performance improvements
Entities in polls
Add support for styled text entities in polls, by adding a questionEntities
property and a getQuestionHTML
method to Poll a answerEntities
property and a getHTML
method to PollAnswer.
To avoid confusion with getQuestionHTML
, the inproperly named getHTML
method of QuizPoll was renamed to getSolutionHTML
.
First stable release of MadelineProto v8!
This is the first stable release of MadelineProto v8!
For the full changelog, see the messages on the official MadelineProto channel, starting from https://t.me/MadelineProto/591!
Here are the main highlights:
- Amp v3 & revolt (fibers) support!
- A new simplified, stable and object-oriented event handler API based on filters and plugins!
- New
sendVideo
,sendAudio
,sendDocument
, etc methods with automatic metadata extraction via ffmpeg. - A new getDownloadLink method for files up to 4gb!
- A new broadcast API, that can be used to asynchronously broadcast messages to all users of a bot or userbot in the background, automatically fetching all users of the bot!
- A pure PHP async VoIP implementation to make Telegram voice calls even on limited webhosts!
- An official docker image!
- Built-in static analysis of event handler code!
- Major performance and stability improvements!
- Many other new features and UX improvements, see all messages starting from https://t.me/MadelineProto/591 for more info!
Major parts of the MadelineProto core were split into standalone libraries that can be used without requiring all of MadelineProto:
- https://github.com/danog/AsyncOrm - Async ORM based on AMPHP v3 and fibers.
- https://github.com/danog/telegram-entities - A library to work with Telegram UTF-16 styled text entities.
- https://github.com/danog/tg-file-decoder - A library to work with Telegram bot API file IDs (recently updated).
The next releases will focus on even more features and performance improvements, such as prometheus and grafana statistics, a static TL parser and much, much more!
Cheers!
Daniil Gentili.
Layer 179, getPropicInfo & getFullInfo improvements
Features:
- Make getPropicInfo, getFullInfo and getPwrChat return Photo objects for profile pictures, compatible with
sendPhoto
methods. - Make getPwrChat return a bit more info with fullfetch=false
- Update to layer 179
New Methods:
New Constructors:
Layer 178, multiple fixes
Fixes:
- Improve markdown parsing
- Remove temporary files created during error reporting
- Fix bug in getFullInfo
New Methods:
- account.toggleSponsoredMessages
- account.getReactionsNotifySettings
- account.setReactionsNotifySettings
- stories.togglePinnedToTop
Changed Methods:
- Added broadcasts_only param to messages.searchGlobal
- Added reactions_limit param to messages.setChatAvailableReactions
New Constructors:
- updateNewStoryReaction
- webPageAttributeStickerSet
- reactionNotificationsFromContacts
- reactionNotificationsFromAll
- reactionsNotifySettings
Changed Constructors:
- Added reactions_limit param to chatFull
- Added reactions_limit param to channelFull
- Added sponsored_enabled param to userFull
- Added unknown_number param to codeSettings
- Added url param to sponsoredMessage
- Added title param to sponsoredMessage
- Added photo param to sponsoredMessage
- Added color param to sponsoredMessage
- Removed show_peer_photo param from sponsoredMessage
- Removed from_id param from sponsoredMessage
- Removed chat_invite param from sponsoredMessage
- Removed chat_invite_hash param from sponsoredMessage
- Removed channel_post param from sponsoredMessage
- Removed start_param param from sponsoredMessage
- Removed webpage param from sponsoredMessage
- Removed app param from sponsoredMessage
- Added pinned_to_top param to stories.stories
Deleted Constructors:
- sponsoredWebPage
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