Forwarded from MadelineProto | Official Channel (Daniil Gentili t)
- Made some bugfixes to channel PTS management
- Bugfixes to the MTProto server
- Now special
bytesobjects can be used while working with binary data in JSON (like in PWRTelegram):
- When working with byte fields returned by MadelineProto, the byte fields will contain
\danog\MadelineProto\TL\Types\Bytesobjects.
This special object can be used as a normal string, and when it is passed to json_encode, the resulting JSON will have a
{"_": "bytes", "bytes":"base64encoded version of the binary data"} array instead of the raw bytes.- When working with byte fields that must be passed to MadelineProto methods, you can provide directly the binary data as a string, a \danog\MadelineProto\TL\Types\Bytes object or a {"_": "bytes", "bytes":"base64encoded version of the binary data"} array (useful for JSON MTProto calls through PWRTelegram)



