danog / MadelineProto

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

Call to undefined method in Entities->entitiesToHtml #1400

Closed xartem closed 1 year ago

xartem commented 1 year ago

Hi, I'm trying to convert a text message with entity formatting to HTML. I am using MadelineProto V7, I am calling the method like this (new danog\MadelineProto\TL\Conversion\Entities)->entitiesToHtml($message['message'], $messages['entities'])

I get an error Call to undefined method for $this->encode(), $this->decode(), $this->getEntityCode() in Entities class

Can anyone tell me how to convert message to HTML?

Thanks

danog commented 1 year ago

Switch to MadelineProto v8 to fix.