php-telegram-cli icon indicating copy to clipboard operation
php-telegram-cli copied to clipboard

error : stream_socket_client(): unable to connect

Open BehroozBvk opened this issue 8 years ago • 1 comments

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?

BehroozBvk avatar Jun 18 '17 18:06 BehroozBvk

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');

ohmydevops avatar Oct 26 '17 11:10 ohmydevops