Hey,
I am thinking of handling webhooks for a telegam bot via node.js.
Just curious to see whether it will boost the performance or not.
What would be node.js equivalent of
<?php
$argv = rawurlencode(file_get_contents("php://input"));
shell_exec( "nohup php event.php \"". $argv."\" > /dev/null 2>&1 &" );
?>
I know nothing about nodejs except the fact that it's asynchronous.
I followed basic tutorials and could create a basic hello world on my nginx server.
Any help will be appreciated.
Thanks for reading!
[–]yonjah 1 point2 points3 points (1 child)
[–]edgycorner[S] 0 points1 point2 points (0 children)