Releases: danog/MadelineProto
Minor fixes
This release features some minor fixes.
VoIP is back!
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!
- You can now
- 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
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
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
: forButtonQuery
and subclasses, data associated with the callback button.$query->matches
: forButtonQuery
and subclasses, regex matches, if a filter regex is present.$query->chatId
: forChat*Query
classes, chat where the inline keyboard was sent.$query->messageId
: forChat*Query
classes, message ID.$query->gameShortName
: forGameQuery
and subclasses, short name of a Game to be returned, serves as the unique identifier for the game$query->inlineMessageId
: forInline*Query
and subclasses, inline message ID$query->editText(...)
: forChat*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
andeditText
methods toMessage
class - Add
FilterButtonQueryData
filter forButtonQuery
- Adapt
FilterFromAdmin
andFilterRegex
filter forButtonQuery
- Add
FromAdminOrOutgoing
simple filter - Add
markdownUrlEscape
method!
Fixes:
- Fix usage of
inputMediaPhotoExternal
andinputMediaDocumentExternal
withmessages.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
Fix json_encoding of Updates.
MadelineProto 8 beta 126
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
Small IPC fix.
MadelineProto 8 beta 124
Small IPC fix.
MadelineProto 8 beta 123
Features:
- Add FilterFromSender (single version of FilterFromSenders)
MadelineProto 8 beta 122
Fix composer update checks.