MadelineProto was updated!
- Huge bugfixes and perfomance improvements!
- Better CLI/web login UI!
- Added automatical TOS flow!
Now, when and if telegram decides to update their TOS, MadelineProto will throw a \danog\MadelineProto\Exception with message "TOS action required, check the logs", and the logs will contain the full terms of service.
You will be required to accept them or refuse them, using the accept_tos() or decline_tos() methods.
Note that the decline_tos method will also delete your account, due to the TOS.
- Updated
@magnaluna!
- HUGE file upload/download speed improvements!
- Implemented automatic message splitting if the length is bigger than 4096, even for markdown and HTML messages!
- You can now omit all string, byte and array parameters, they will be automatically populated by MadelineProto!
- COMBINED EVENT DRIVEN UPDATE HANDLING:
https://docs.madelineproto.xyz/docs/UPDATES.html#combined-event-drivenYou can now use a single event handler to manage updates from multiple MadelineProto instances! Very useful for group management bots coupled with inline bots.
- And, most importantly:
LAYER 82: tons of new features, edit media messages, Telegram Passport, Telegram Login, account export and MTProto proxies!
BOTS:
- New
inputBotInlineResult for sending webdocument objects as inline results, that once sent and received as
botInlineResult by the user, can be downloaded/proxied
through telegram using
upload.getWebFile.
TELEGRAM PASSPORT:
- New
account.getAuthorizationForm method (bots) for sending the telegram passport authorization form.
- New
account.acceptAuthorization method for accepting the authorization form.
- New
account.saveSecureValue method for saving a telegram passport secure value (like your passport, your ID card, and so on...).
- New
account.getSecureValue method for getting a telegram passport secure value.
- New
account.getAllSecureValues method for getting all telegram passport secure values.
- New
account.deleteSecureValue method for deleting a telegram passport secure value.
- New
user.setSecureValueErrors method for notifying the user about errors in a telegram passport secure value.
GDPR ACCOUNT EXPORT:
- New
account.initTakeoutSession for initialising account export.
- New
account.finishTakeoutSession for ending account export.
- New
channels.getLeftChannels method for fetching a list of channels you left!
- New
messages.getSplitRanges method for fetching a list of message IDs to download!
- New
invokeWithTakeout and
invokeWithMessagesRange methods for calling takeout methods like
messages.getHistory,
messages.getDialogs.
MESSAGES:
- New
messages.report method for reporting messages in groups
-
messages.editMessage can now be used to edit MEDIA messages!
- New
help.getDeepLinkInfo method for fetching info about deep links!
- New
messageActionBotAllowed service message for telegram login notifications!
- New
messageEntityPhone and
messageEntityCashtag entities for blue link goodies in messages!
VCARD/CONTACTS:
- New vcard parameter for
inputMediaContact to use with
sendMedia!
- New vcard parameter for
messageMediaContact, to be received in updates!
- New
contacts.getSaved method for fetching all saved contacts.
- New
contacts.toggleTopPeers method for deleting/adding top peers (the users you see when you click the search button in the app).
PROXIES:
- New
help.getProxyData method for fetching info (sponsored channels) of the current proxy!
UNREAD CHATS:
- New
updateDialogUndreadMark for updates for when you manually mark a dialog as unread using
messages.markDialogUnread; use
messages.getDialogUnreadMarks to get a list of all dialogs marked as unread manually.
- Improved
stickerSet constructor for stickerpacks!
Stay tuned for updates, now that
my exams are over, cool new proxy POCs coming up, along 100x speed improvements with asynchronous magic and long-awaited snakes!