Releases: danog/MadelineProto
8.0.0-beta178
Improve TL traces of IPC exceptions.
8.0.0-beta177
Peer bugfixes.
8.0.0-beta176
Small bugfix
Small bugfix in update handling and remove ancient zend hashmap memory leak.
ChannelParticipant, FilterTopicId, refactoring & update bugfixes
Breaking changes:
- Removed the
flush()
method: thepostpone
flag will now only postpone flushing to the end of the event loop queue, instead of never triggering it untilflush()
or a non-postponed method is called by @danog - Removed the deprecated
getDialogs
method, please usegetDialogIds
instead by @danog
Features:
- Add
ChannelParticipant
update, received whenever a participant leaves, joins or is banned or admined in a channel or supergroup by @ahjdev - Add a
FilterTopicId
filter to filter messages by topic ID by @ahjdev - Add
queueId
parameter to methods to allow enforcing server-side execution order when usingpostpone
or invoking methods concurrently by @danog
Fixes:
-
Completely refactor message and update handling, improving performance and fixing various bugs by @danog
-
Fix BotChatInviteRequest by @danog
-
Update the source code of downloadRenameBot.php by @ahjdev
-
Report exceptions thrown from event handler to the report peer(s) of the current event handler when using multiple event handler with
startAndLoopMulti
orEventLoop::queue(MyEventHandler::startAndLoop(...), '...madeline');
by @danog
Note that for performance reasons, some internal or connection exceptions not thrown from the event handler and exceptions thrown fromonStart
may still get reported (only to, or also to) the last started event handler. -
Completely remove postponing from the API to avoid unwanted side effects (sequentially queued requests are still bundled in a single container anyway by @danog
-
Use async output buffer stream with
downloadToBrowser
by @danog -
Secret chat media improvements by @danog
ChannelParticipant, FilterTopicId, refactoring & bugfixes
Breaking changes:
- Remove
flush()
method: thepostpone
flag will now only postpone flushing to the end of the event loop queue, instead of never triggering it untilflush()
or a non-postponed method is called by @danog
Features:
- Add
ChannelParticipant
update, received whenever a participant leaves, joins or is banned or admined in a channel or supergroup by @ahjdev - Add a
FilterTopicId
filter to filter messages by topic ID by @ahjdev - Add
queueId
parameter to methods to allow enforcing server-side execution order when usingpostpone
or invoking methods concurrently by @danog
Fixes:
- Completely refactor message and update handling, improving performance and fixing various bugs by @danog
- Fix BotChatInviteRequest by @danog
- Update the source code of downloadRenameBot.php by @ahjdev
Small fix
Small fix in message handling logic.
Remove low-level peer constructors
Breaking changes:
- Remove low-level
peerChannel
,peerChat
,peerUser
constructors everywhere from the API, replacing them with bot API IDs (integers). - Remove legacy
to_id
field from legacy raw updates (the new SimpleEventHandler API has not changed, because it's covered by the backwards compatibility promise, unlike legacy raw updates)
Features:
- Add a
getDiscussion
method to ChannelMessage to obtain the comment section of a post as aGroupMessage
. - Document the built-in ORM: https://docs.madelineproto.xyz/docs/UPDATES.html#built-in-orm
Fixes:
- Fix update gap handling, broken in the v7->v8 update due to changed resume semantics in danog/loop.
Layer 167 and fix broadcasts
Features:
- Support forwarding stories through sendMedia
Fixes:
- Fix broadcasts with the broadcast API
New Methods:
- messages.searchEmojiStickerSets (https://docs.madelineproto.xyz/API_docs/methods/messages.searchEmojiStickerSets.html)
- help.getPeerColors (https://docs.madelineproto.xyz/API_docs/methods/help.getPeerColors.html)
- help.getPeerProfileColors (https://docs.madelineproto.xyz/API_docs/methods/help.getPeerProfileColors.html)
- channels.toggleViewForumAsMessages (https://docs.madelineproto.xyz/API_docs/methods/channels.toggleViewForumAsMessages.html)
- channels.getChannelRecommendations (https://docs.madelineproto.xyz/API_docs/methods/channels.getChannelRecommendations.html)
- stats.getStoryStats (https://docs.madelineproto.xyz/API_docs/methods/stats.getStoryStats.html)
- stats.getStoryPublicForwards (https://docs.madelineproto.xyz/API_docs/methods/stats.getStoryPublicForwards.html)
- premium.getUserBoosts (https://docs.madelineproto.xyz/API_docs/methods/premium.getUserBoosts.html)
Changed Methods:
- Added for_profile param to account.updateColor (https://docs.madelineproto.xyz/API_docs/methods/account.updateColor.html)
- Added for_both param to messages.setChatWallPaper (https://docs.madelineproto.xyz/API_docs/methods/messages.setChatWallPaper.html)
- Added revert param to messages.setChatWallPaper (https://docs.madelineproto.xyz/API_docs/methods/messages.setChatWallPaper.html)
- Added fwd_modified param to stories.sendStory (https://docs.madelineproto.xyz/API_docs/methods/stories.sendStory.html)
- Added fwd_from_id param to stories.sendStory (https://docs.madelineproto.xyz/API_docs/methods/stories.sendStory.html)
- Added fwd_from_story param to stories.sendStory (https://docs.madelineproto.xyz/API_docs/methods/stories.sendStory.html)
New Constructors:
- messageActionGiveawayResults (https://docs.madelineproto.xyz/API_docs/constructors/messageActionGiveawayResults.html)
- updateBotChatBoost (https://docs.madelineproto.xyz/API_docs/constructors/updateBotChatBoost.html)
- updateChannelViewForumAsMessages (https://docs.madelineproto.xyz/API_docs/constructors/updateChannelViewForumAsMessages.html)
- updatePeerWallpaper (https://docs.madelineproto.xyz/API_docs/constructors/updatePeerWallpaper.html)
- storyFwdHeader (https://docs.madelineproto.xyz/API_docs/constructors/storyFwdHeader.html)
- postInteractionCountersMessage (https://docs.madelineproto.xyz/API_docs/constructors/postInteractionCountersMessage.html)
- postInteractionCountersStory (https://docs.madelineproto.xyz/API_docs/constructors/postInteractionCountersStory.html)
- stats.storyStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.storyStats.html)
- publicForwardMessage (https://docs.madelineproto.xyz/API_docs/constructors/publicForwardMessage.html)
- publicForwardStory (https://docs.madelineproto.xyz/API_docs/constructors/publicForwardStory.html)
- stats.publicForwards (https://docs.madelineproto.xyz/API_docs/constructors/stats.publicForwards.html)
- peerColor (https://docs.madelineproto.xyz/API_docs/constructors/peerColor.html)
- help.peerColorSet (https://docs.madelineproto.xyz/API_docs/constructors/help.peerColorSet.html)
- help.peerColorProfileSet (https://docs.madelineproto.xyz/API_docs/constructors/help.peerColorProfileSet.html)
- help.peerColorOption (https://docs.madelineproto.xyz/API_docs/constructors/help.peerColorOption.html)
- help.peerColorsNotModified (https://docs.madelineproto.xyz/API_docs/constructors/help.peerColorsNotModified.html)
- help.peerColors (https://docs.madelineproto.xyz/API_docs/constructors/help.peerColors.html)
Changed Constructors:
- Added profile_color param to user (https://docs.madelineproto.xyz/API_docs/constructors/user.html)
- Removed background_emoji_id param from user (https://docs.madelineproto.xyz/API_docs/constructors/user.html)
- Removed background_emoji_id param from channel (https://docs.madelineproto.xyz/API_docs/constructors/channel.html)
- Added view_forum_as_messages param to channelFull (https://docs.madelineproto.xyz/API_docs/constructors/channelFull.html)
- Added same param to messageActionSetChatWallPaper (https://docs.madelineproto.xyz/API_docs/constructors/messageActionSetChatWallPaper.html)
- Added for_both param to messageActionSetChatWallPaper (https://docs.madelineproto.xyz/API_docs/constructors/messageActionSetChatWallPaper.html)
- Added view_forum_as_messages param to dialog (https://docs.madelineproto.xyz/API_docs/constructors/dialog.html)
- Added wallpaper_overridden param to userFull (https://docs.madelineproto.xyz/API_docs/constructors/userFull.html)
- Added reactions_per_post param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added views_per_story param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added shares_per_story param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added reactions_per_story param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added reactions_by_emotion_graph param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added story_interactions_graph param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added story_reactions_by_emotion_graph param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added recent_posts_interactions param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Removed recent_message_interactions param from stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added quote_offset param to messageReplyHeader (https://docs.madelineproto.xyz/API_docs/constructors/messageReplyHeader.html)
- Added reactions_by_emotion_graph param to stats.messageStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.messageStats.html)
- Added app param to sponsoredMessage (https://docs.madelineproto.xyz/API_docs/constructors/sponsoredMessage.html)
- Added button_text param to sponsoredMessage (https://docs.madelineproto.xyz/API_docs/constructors/sponsoredMessage.html)
- Added trial_remains_num param to messages.transcribedAudio (https://docs.madelineproto.xyz/API_docs/constructors/messages.transcribedAudio.html)
- Added trial_remains_until_date param to messages.transcribedAudio (https://docs.madelineproto.xyz/API_docs/constructors/messages.transcribedAudio.html)
- Added fwd_from param to storyItem (https://docs.madelineproto.xyz/API_docs/constructors/storyItem.html)
- Added quote_offset param to inputReplyToMessage (https://docs.madelineproto.xyz/API_docs/constructors/inputReplyToMessage.html)
Layer 167
Features:
- Support forwarding stories through sendMedia
New Methods:
- messages.searchEmojiStickerSets (https://docs.madelineproto.xyz/API_docs/methods/messages.searchEmojiStickerSets.html)
- help.getPeerColors (https://docs.madelineproto.xyz/API_docs/methods/help.getPeerColors.html)
- help.getPeerProfileColors (https://docs.madelineproto.xyz/API_docs/methods/help.getPeerProfileColors.html)
- channels.toggleViewForumAsMessages (https://docs.madelineproto.xyz/API_docs/methods/channels.toggleViewForumAsMessages.html)
- channels.getChannelRecommendations (https://docs.madelineproto.xyz/API_docs/methods/channels.getChannelRecommendations.html)
- stats.getStoryStats (https://docs.madelineproto.xyz/API_docs/methods/stats.getStoryStats.html)
- stats.getStoryPublicForwards (https://docs.madelineproto.xyz/API_docs/methods/stats.getStoryPublicForwards.html)
- premium.getUserBoosts (https://docs.madelineproto.xyz/API_docs/methods/premium.getUserBoosts.html)
Changed Methods:
- Added for_profile param to account.updateColor (https://docs.madelineproto.xyz/API_docs/methods/account.updateColor.html)
- Added for_both param to messages.setChatWallPaper (https://docs.madelineproto.xyz/API_docs/methods/messages.setChatWallPaper.html)
- Added revert param to messages.setChatWallPaper (https://docs.madelineproto.xyz/API_docs/methods/messages.setChatWallPaper.html)
- Added fwd_modified param to stories.sendStory (https://docs.madelineproto.xyz/API_docs/methods/stories.sendStory.html)
- Added fwd_from_id param to stories.sendStory (https://docs.madelineproto.xyz/API_docs/methods/stories.sendStory.html)
- Added fwd_from_story param to stories.sendStory (https://docs.madelineproto.xyz/API_docs/methods/stories.sendStory.html)
New Constructors:
- messageActionGiveawayResults (https://docs.madelineproto.xyz/API_docs/constructors/messageActionGiveawayResults.html)
- updateBotChatBoost (https://docs.madelineproto.xyz/API_docs/constructors/updateBotChatBoost.html)
- updateChannelViewForumAsMessages (https://docs.madelineproto.xyz/API_docs/constructors/updateChannelViewForumAsMessages.html)
- updatePeerWallpaper (https://docs.madelineproto.xyz/API_docs/constructors/updatePeerWallpaper.html)
- storyFwdHeader (https://docs.madelineproto.xyz/API_docs/constructors/storyFwdHeader.html)
- postInteractionCountersMessage (https://docs.madelineproto.xyz/API_docs/constructors/postInteractionCountersMessage.html)
- postInteractionCountersStory (https://docs.madelineproto.xyz/API_docs/constructors/postInteractionCountersStory.html)
- stats.storyStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.storyStats.html)
- publicForwardMessage (https://docs.madelineproto.xyz/API_docs/constructors/publicForwardMessage.html)
- publicForwardStory (https://docs.madelineproto.xyz/API_docs/constructors/publicForwardStory.html)
- stats.publicForwards (https://docs.madelineproto.xyz/API_docs/constructors/stats.publicForwards.html)
- peerColor (https://docs.madelineproto.xyz/API_docs/constructors/peerColor.html)
- help.peerColorSet (https://docs.madelineproto.xyz/API_docs/constructors/help.peerColorSet.html)
- help.peerColorProfileSet (https://docs.madelineproto.xyz/API_docs/constructors/help.peerColorProfileSet.html)
- help.peerColorOption (https://docs.madelineproto.xyz/API_docs/constructors/help.peerColorOption.html)
- help.peerColorsNotModified (https://docs.madelineproto.xyz/API_docs/constructors/help.peerColorsNotModified.html)
- help.peerColors (https://docs.madelineproto.xyz/API_docs/constructors/help.peerColors.html)
Changed Constructors:
- Added profile_color param to user (https://docs.madelineproto.xyz/API_docs/constructors/user.html)
- Removed background_emoji_id param from user (https://docs.madelineproto.xyz/API_docs/constructors/user.html)
- Removed background_emoji_id param from channel (https://docs.madelineproto.xyz/API_docs/constructors/channel.html)
- Added view_forum_as_messages param to channelFull (https://docs.madelineproto.xyz/API_docs/constructors/channelFull.html)
- Added same param to messageActionSetChatWallPaper (https://docs.madelineproto.xyz/API_docs/constructors/messageActionSetChatWallPaper.html)
- Added for_both param to messageActionSetChatWallPaper (https://docs.madelineproto.xyz/API_docs/constructors/messageActionSetChatWallPaper.html)
- Added view_forum_as_messages param to dialog (https://docs.madelineproto.xyz/API_docs/constructors/dialog.html)
- Added wallpaper_overridden param to userFull (https://docs.madelineproto.xyz/API_docs/constructors/userFull.html)
- Added reactions_per_post param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added views_per_story param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added shares_per_story param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added reactions_per_story param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added reactions_by_emotion_graph param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added story_interactions_graph param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added story_reactions_by_emotion_graph param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added recent_posts_interactions param to stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Removed recent_message_interactions param from stats.broadcastStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.broadcastStats.html)
- Added quote_offset param to messageReplyHeader (https://docs.madelineproto.xyz/API_docs/constructors/messageReplyHeader.html)
- Added reactions_by_emotion_graph param to stats.messageStats (https://docs.madelineproto.xyz/API_docs/constructors/stats.messageStats.html)
- Added app param to sponsoredMessage (https://docs.madelineproto.xyz/API_docs/constructors/sponsoredMessage.html)
- Added button_text param to sponsoredMessage (https://docs.madelineproto.xyz/API_docs/constructors/sponsoredMessage.html)
- Added trial_remains_num param to messages.transcribedAudio (https://docs.madelineproto.xyz/API_docs/constructors/messages.transcribedAudio.html)
- Added trial_remains_until_date param to messages.transcribedAudio (https://docs.madelineproto.xyz/API_docs/constructors/messages.transcribedAudio.html)
- Added fwd_from param to storyItem (https://docs.madelineproto.xyz/API_docs/constructors/storyItem.html)
- Added quote_offset param to inputReplyToMessage (https://docs.madelineproto.xyz/API_docs/constructors/inputReplyToMessage.html)