github danog/MadelineProto 8.0.0-beta145
Huge number of new SimpleEventHandler updates!

latest releases: 8.3.2, 8.3.1, 8.3.0...
12 months ago

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! :)

Don't miss a new MadelineProto release

NewReleases is sending notifications on new releases.