Closed PavelSachenko closed 1 year ago
The example provided by chatgpt is completely incorrect, I don't recommend using chatgpt to write MadelineProto code, because it doesn't have enough information about MadelineProto to generate working code.
Simply use the getSelf function to check if the session is still active: if it's still active, it will return flase. To avoid the stream socket client error make sure to use v8.
How can I check and delete the files of the old session that are no longer valid?
I use: "danog/madelineproto": "7.0.152", php 8.2.3 laravel 10.8.0
I try this way (recommended by chatGPT):
But I had a cycle: Exception: stream_socket_client(): Unable to connect to unix:///var/www/storage/app/session.flbIhU8jyp.ipc (Connection refused) in functions.php:43 Serialization: stream_socket_client(): Unable to connect to unix:///var/www/storage/app/session.flbIhU8jyp.ipc (Connection refused) while connecting to IPC socket