Fix hook script for CLI compatibility
Fix hook script for CLI compatibility

PHP input is now switched to stdandard input only when running in command line mode (avoids hanging the script when no HTTP request body is received).
DigiPlatMOOC/TelegramBotSample,DigiPlatMOOC/TelegramBotSample