Skip to content

Releases: danog/MadelineProto

Minor fixes

15 Aug 08:35
Compare
Choose a tag to compare

This release features some minor fixes.

VoIP is back!

14 Aug 21:25
c3cbecb
Compare
Choose a tag to compare

As a birthday present for Telegram's 10th birthday, MadelineProto now supports VoIP calls again!

Try calling the Magna Luna webradio @magicalcrazypony to hear some cool songs, powered by @MadelineProto!

The new MadelineProto VoIP implementation is written in pure PHP, so it works even on free webhosts!

Check out the new VoIP documentation (https://docs.madelineproto.xyz/docs/CALLS.html) for more info on how to write your very own Telegram webradio using MadelineProto!

Features (8.0.0-beta131):

  • VoIP calls (https://docs.madelineproto.xyz/docs/CALLS.html)!
    • You can now play() audio files of any format, local files, stream URLs or even stream data using AMP streams!
    • You can now play() audio files even on webhosts, by pre-converting the files using @libtgvoip_bot!
  • Added a downloadToReturnedStream method!
  • Updated to layer 161 (see here for the full changelog)!

Fixes:

  • Greatly improved performance by deferring all ORM operations!
  • CDN fixes!
  • Fix connection to the database when a password is accidentally provided but none is needed
  • Removed all generator polyfilling code and deprecated generator functions!

As a side note, I'm very happy of how the current VoIP implementation turned out, and it was a lot of fun to write!

Adding native webhost support required me to write a pure PHP OGG OPUS muxer and demuxer, as well as a full reimplementation of the GrVP protocol in pure PHP: doing it in such a high-level language allowed me to easily use amphp's libraries to easily add support for URLs, streams and all audio formats.

I also wrote a PHP FFI wrapper for libopus for this project, I'll probably split it to a separate package along with the OGG muxer/demuxer because it's really useful :)

MadelineProto beta 130

07 Aug 07:04
28269b1
Compare
Choose a tag to compare

Fixes:

  • Fix an issue with the translate method
  • Properly terminate IPC worker and delete session in case of session revocation
  • Fix CDN file downloads
  • Fix connection to testmode
  • Properly wait when making getPwrChat requests
  • Many other fixes!

MadelineProto 8 beta 129

05 Aug 21:51
Compare
Choose a tag to compare

Features:

  • Add CallbackQuery, ButtonQuery, ChatButtonQuery, InlineButtonQuery, GameQuery, ChatGameQuery, InlineGameQuery simple update classes with many useful properties and methods:
    • $query->queryId: Query ID
    • $query->userId: ID of the user that pressed the button
    • $query->chatInstance: Global identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
    • $query->data: for ButtonQuery and subclasses, data associated with the callback button.
    • $query->matches: for ButtonQuery and subclasses, regex matches, if a filter regex is present.
    • $query->chatId: for Chat*Query classes, chat where the inline keyboard was sent.
    • $query->messageId: for Chat*Query classes, message ID.
    • $query->gameShortName: for GameQuery and subclasses, short name of a Game to be returned, serves as the unique identifier for the game
    • $query->inlineMessageId: for Inline*Query and subclasses, inline message ID
    • $query->editText(...): for Chat*Query classes, edits the message's text.
    • $query->answer(string $message, bool $alert = false, ?string $url = null, int $cacheTime = 5 * 60) - Answer an inline query
  • Add translate and editText methods to Message class
  • Add FilterButtonQueryData filter for ButtonQuery
  • Adapt FilterFromAdmin and FilterRegex filter for ButtonQuery
  • Add FromAdminOrOutgoing simple filter
  • Add markdownUrlEscape method!

Fixes:

  • Fix usage of inputMediaPhotoExternal and inputMediaDocumentExternal with messages.sendMultiMedia, messages.sendMedia, messages.uploadMedia
  • Fix IsReplyToSelf simple filter
  • Fix CustomEmoji media type
  • Fix bot API conversion for messages forwarded from private channels (+ other bot API conversion fixes)
  • Fix pagination hash generation
  • Improve markdownCodeblockEscape method
  • Many more fixes!

MadelineProto 8 beta 128

30 Jul 21:43
373824c
Compare
Choose a tag to compare

Fix json_encoding of Updates.

MadelineProto 8 beta 126

26 Jul 15:40
3d61862
Compare
Choose a tag to compare

Features:

  • Add addReaction, delReaction, getOurReactions, pin, unpin bound Message methods by @J_A_V_A

Fixes:

  • Allow inclusion of traits, interfaces in plugins
  • Fix creation of sessions

MadelineProto 8 beta 125

26 Jul 09:57
1508009
Compare
Choose a tag to compare

Small IPC fix.

MadelineProto 8 beta 124

26 Jul 06:18
188bb29
Compare
Choose a tag to compare

Small IPC fix.

MadelineProto 8 beta 123

25 Jul 17:20
ce857fa
Compare
Choose a tag to compare

Features:

  • Add FilterFromSender (single version of FilterFromSenders)

MadelineProto 8 beta 122

25 Jul 14:13
8eb2268
Compare
Choose a tag to compare

Fix composer update checks.