Skip to content

Releases: danog/MadelineProto

Layer 165, secret chats

01 Oct 19:29
Compare
Choose a tag to compare

Features by @danog:

  • Update to layer 165
  • Full secret chat refactoring, fixing many issues and adding support for updateNewOutgoingEncryptedMessage updates.
  • A huge amount of stability and performance improvements.
  • Added support for secret chats to the abstract sendDocument/sendPhoto/sendMessage methods.
  • Reduce memory usage of secret chats by storing all messages in separate tables if a DB backend is used.
  • Add cancellation support to the download methods.

Features by @mtalaeii:

  • Add full secret chat support to the SimpleEventHandler with the new SecretMessage update & filters & fields!
  • Add secret chat support to DialogSetTTL/DialogScreenshotTaken/DialogHistoryCleared/SecretUserTyping updates.
  • Add DialogDeleteMessages, DialogReadMessages updates for secret chats (support will be extended to normal chats soon).

Features by @ahjbyte:

  • Add support for channel stories in the SimpleEventHandler API
  • Add enableAutoTranslate, disableAutoTranslate, replyOrEdit bound methods to all message classes.
  • Add enableProtection, disableProtection bound methods to channel/supergroup message classes.
  • Add enableSlowMode, disableSlowMode, enableJoinToComment, disableJoinToComment bound methods to supergroup message classes.
  • Add DialogSetChatWallPaper/DialogBotAllowed/ChatUserTyping updates and BotApp/Wallpaper/WallpaperSettings classes.
  • Add IsEdited/IsNotEdited message filters
  • Multiple bugfixes in the SimpleEventHandler API

Features by @thebrutish:

  • Add support for an onStop method in the event handler

Fix race condition in file upload

23 Sep 19:03
5b2ca86
Compare
Choose a tag to compare
Pre-release

Fixes:

  • Fix file upload race condition that might occur during reconnection

Layer 164

23 Sep 13:29
f1a14da
Compare
Choose a tag to compare
Layer 164 Pre-release
Pre-release

MadelineProto was updated (8.0.0-beta151!)

Features:

  • Upgraded to layer 164 (see here for the full changelog)!

Fixes:

  • Performance improvements for getID
  • Fix hangs by disabling JIT in official docker image
  • Fix issue in DialogTopicEdited
  • Fix FromAdminOrOutgoing filter
  • Fix status logic in CheckLoop (should avoid Request Timeout errors)
  • Update&fix telethon and pyrogram session conversion logic
  • Get rid of old code
  • tg-cli ID bugfixes
  • TL performance improvements

Layer 162

11 Sep 10:09
6c5022a
Compare
Choose a tag to compare

MadelineProto was updated (8.0.0-beta150)!

New Methods:

Changed Constructors:

  • Added from_request param to messageActionBotAllowed
  • Added verified param to chatInvite
  • Added scam param to chatInvite
  • Added fake param to chatInvite
  • Added has_viewers param to storyViews

Fixes:

  • File-related fixes

Improve performance of docker image and bugfix

08 Sep 09:56
6bf4518
Compare
Choose a tag to compare

Fixes:

  • Improve performance of docker image
  • Small file fix

Bugfix release

07 Sep 19:11
ad5b968
Compare
Choose a tag to compare

Fixes by @danog:

  • Connection stability fixes
  • Avoid GC bugs
  • Improve media DC logic
  • Fix sendDocument/sendPhoto through IPC API
  • Fix upload of images with no content-length
  • Fix usage of streams and filecallbacks through the IPC API
  • Allow using fopen on php://memory
  • Improve stream upload logic
  • Handle MSG_WAIT_FAILED errors
  • Improve call queue
  • Improve tests

Minor bugfixes

07 Sep 07:13
c6299d2
Compare
Choose a tag to compare
Minor bugfixes Pre-release
Pre-release

What's Changed

Fixes:

  • handle sendMessageGamePlayAction by @AhJXD in #1404
  • TL fix by @danog
  • Avoid ext-psr conflict by @danog
  • Bugfix for libtgvoipbot by @danog

Full Changelog: 8.0.0-beta145...8.0.0-beta146

Huge number of new SimpleEventHandler updates!

06 Sep 20:00
309354d
Compare
Choose a tag to compare

MadelineProto was updated (8.0.0-beta145)!

Huge thanks to @AhjXD and @mtalaeii for contributing a huge number of abstractions for the SimpleEventHandler for this release, here's the full changelog:

Features by @AhjXD:

  • Add InlineQuery SimpleEventHandler updates with related InlineQueryPeerType, GeoPoint classes
  • Add block, unblock, read, enableTTL, disableTTL, getStories, setAction, enableTTL, disableTTL bound methods to all message updates (with related classes)
  • Add Story, StoryReaction, ChannelUserTyping, UserTyping, Blocked, BotStopped, Phone, Status, Username, Privacy SimpleEventHandler updates
  • Add save, unsave bound methods to the Gif class
  • Add disableSignatures, enableSignatures, getMember , hideHistory, unhideHistory bound methods to ChannelMessage
  • Add getMember, hideMembers, unhideMembers, hideHistory, unhideHistory, deleteUserMessages, toSuperGroup, enableAntiSpam, disableAntiSpam, enableTopics, disableTopics, createTopic, editTopic, openTopic, closeTopic, deleteTopic bound methods to GroupMessage
  • Add Participant and AdminRights, BannedRights classes
  • Add screeshot bound method to PrivateMessage
  • Add DialogChannelCreated, DialogChannelMigrateFrom, DialogChatJoinedByLink, DialogChatMigrateTo, DialogContactSignUp, DialogGameScore, DialogGeoProximityReached, DialogGiftPremium, GroupCallEnded, GroupCallInvited, GroupCallScheduled, DialogHistoryCleared, DialogMemberJoinedByRequest, DialogPeerRequested, DialogPhoneCall, DialogScreenshotTaken, DialogSetChatTheme, DialogSetTTL, DialogSuggestProfilePhoto, DialogTopicCreated, DialogTopicEdited, DialogWebView SimpleEventHandler service messages
  • Add Privacy abstraction

Features by @mtalaeii:

  • Add entity support for SimpleEventHandler Messages, with full OOP Entity abstractions
  • Add ButtonQuery SimpleEventHandler updates
  • Add downloadToDir, downloadToFile bound methods to Media objects
  • Add report, saveContact, removeContact, inviteToChannel, read bound methods to Message objects
  • Add view bound method to ChannelMessage
  • Add ban, unban, kick, deleteAll methods to GroupMessage
  • Begin work on secret chat support for SimpleEventHandler

Features by @danog:

  • Add support for bot API secret chat IDs
  • Begin work on group call and video call support
  • Add view/forward/author information in forwarded messages
  • Increase performance with buffered logging
  • Add isBot method, to check if the specified peer is a bot.
  • Add FilterFromBot, FilterSenders filters

Fixes by @danog:

  • Completely refactored the connection module, featuring:
    • 60-80% faster initial handshakes
    • No unneeded socket connections to unused DCs
    • Automatic disconnection of inactive media sockets
    • Properly reconnect in case of network issues (fixes "Request Timeout" errors)
    • Optimizations across the board
  • Add pcntl extension to docker image
  • Mark all optional constructor parameters as optional in the public API.
  • Fix usage of boolean parameters of account.changeAuthorizationSettings, messages.editExportedChatInvite, channels.editForumTopic, phone.toggleGroupCallSettings, phone.toggleGroupCallRecord, phone.editGroupCallParticipant
  • Fix pagination in messages.getChatInviteImporters by explicitly requiring the offset_date parameter if offset_user is provided
  • Secret chat fixes
  • Fix fileGetContents and http-client
  • Fix reuploading of media files from abstract Media objects
  • Fix pending count in broadcasts
  • Avoid race condition during initialization
  • Avoid integer overflow in VoIP module
  • Fix setBindTo

Fixes by @xtrime-ru:

  • Fix safari video streaming

Breaking changes:

  • Moved the isSupergroup, toSupergroup, fromSupergroup methods to a DialogId class, which also has many other useful methods to work with bot API IDs.
  • All download methods except for downloadToFile and downloadToDir now return null instead of true.

On a more personal note, I'm very happy of the changes that were contributed in this release: MadelineProto is an open source project, and you can contribute features as well, feel free to fork it and submit pull requests to add the features you think would be cool to have! :)

MadelineProto 8.0.0-beta144

27 Aug 18:08
cebab3a
Compare
Choose a tag to compare

MadelineProto was updated (8.0.0-beta144)!

Features:

  • Add cb, offset and end parameters to Media::getStream
  • Always run updateSettings if settings are passed to constructor.
    This is a useful UX improvement, but it brings some additional overhead when using new \danog\MadelineProto\API, so please remove (or pass null) the second $settings parameter passed to the API constructor once the instance is logged in.

Fixes:

  • Multiple IPC fixes and improvements
  • Avoid connecting to old DCs that the server told us to forget about

Allow encoding mono files with Ogg::convert!

21 Aug 08:27
5388599
Compare
Choose a tag to compare

Encoding mono files should raise the overall quality of the audio.