danog / MadelineProto

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

Add onStop method #1419

Closed xcgu closed 9 months ago

xcgu commented 9 months ago

Add onStop method

danog commented 9 months ago

A better way of implementing this is to define a __destruct function in EventHandler.php that invokes onStop, if it exists.

xcgu commented 9 months ago

Done