danog / MadelineProto

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

EventHandler ignore changes #1333

Closed HardwareDealz closed 1 year ago

HardwareDealz commented 1 year ago

I have created a EventHandler like Docs. The EventHandler works but when i change the code, MadelineProto ignores every changes. I have to "restart" the complete Service but then i have to reconnect every account. I use Laravel as framework. maybe there is a solution for this?

danog commented 1 year ago

You can implement a restart command that invokes $this->restart().