danog / MadelineProto

Async PHP client API for the telegram MTProto protocol
https://docs.madelineproto.xyz
GNU Affero General Public License v3.0
2.83k stars 651 forks source link

Return Type In Read Method From Mesage Object #1503

Closed MeRezaRezaei closed 6 months ago

MeRezaRezaei commented 6 months ago

When I Try To Call $message->read(true); in Madelineproto update handler after forwarding the message to the same user who just forwarded the same message to madeline client i got the Error: TypeError: danog\MadelineProto\EventHandler\AbstractMessage::read(): Return value must be of type bool, array returned in /var/www/html/vendor/danog/madelineproto/src/EventHandler/AbstractMessage.php:397 since the function read() is from madeline i assume its a madeline bug. madeline.log

danog commented 6 months ago

Fixed in beta195!