public function webhook(): void
	{
		//$log = new Logger('botlog');
		//$log->pushHandler(new StreamHandler(__DIR__ . "/../log/botlog.log", Logger::DEBUG));

		if ($data = BotApi::jsonValidate(file_get_contents('php://input'), true)) {
			//$log->debug(file_get_contents('php://input'));
			$update = Update::fromResponse($data);
			$this->processUpdate($update);
		}
	}
public function webhook(): void
	{
		//$log = new Logger('botlog');
		//$log->pushHandler(new StreamHandler(__DIR__ . "/../log/botlog.log", Logger::DEBUG));

		if ($data = BotApi::jsonValidate(file_get_contents('php://input'), true)) {
			//$log->debug(file_get_contents('php://input'));
			$update = Update::fromResponse($data);
			$this->processUpdate($update);
		}
	}
public function webhook ( ) : void { //$log = new Logger('botlog'); //$log->pushHandler(new StreamHandler(__DIR__ . "/../log/botlog.log", Logger::DEBUG)); if ( $ data = BotApi :: jsonValidate ( file_get_contents ( 'php://input' ) , true ) ) { //$log->debug(file_get_contents('php://input')); $ update = Update :: fromResponse ( $ data ) ; $ this -> processUpdate ( $ update ) ; } }
Call this function to turn on the bot when processing via webhooks.
Call this function to turn on the bot when processing via webhooks .