src/VkCommunityCallbackDriver.php
/**
     * Manages the text to be echoed for VK API
     */
Manages the text to be echoed for VK API
Manages the text to be echoed for VK API
protected function reply() {
        if(!$this->reply){
            ob_end_clean();
            header("Connection: close");
            ignore_user_abort(true);
            ob_start();
            switch($this->payload->get("type")){
                case "confirmation":
                    break;
                default:
                    $this->ok();
                    break;
            }
            $size = ob_get_length();
            header("Content-Length: $size");
            ob_end_flush();
            flush();
            $this->reply = true;
        }
    }
protected function reply ( ) { if ( ! $ this -> reply ) { ob_end_clean ( ) ; header ( " Connection: close " ) ; ignore_user_abort ( true ) ; ob_start ( ) ; switch ( $ this -> payload -> get ( " type " ) ) { case " confirmation " : break ; default : $ this -> ok ( ) ; break ; } $ size = ob_get_length ( ) ; header ( " Content-Length:  $ size " ) ; ob_end_flush ( ) ; flush ( ) ; $ this -> reply = true ; } }
Manages the text to be echoed for VK API
Manages the text to be echoed for VK API
// Echo the confirmation token // [DEPRECATED] Use $botman->on("confirmation", function($payload, Botman $bot){ echo("token"); }); in routes/botman.php instead //                    $this->echoConfirmationToken(); // Echo OK for all incoming events