php-telegram-cli
php-telegram-cli copied to clipboard
error : stream_socket_client(): unable to connect
Hello I package installed on the laravel but the runtime error :
1/1) ErrorException stream_socket_client(): unable to connect to unix:///tmp/tg.sck (No such file or directory)
What could be the problem?
hi. you shoud run telegram cli with this command : telegram-cli --json -dWS /tmp/NAME.sck &
and creat instance like this : $cli = new Smoqadam\TelegramCli('unix:///tmp/NAME.sck');