public function setChatLog(string $chat_id, bool $skip_check = false)
    {
        // Check that the bot can write in that chat
        if (!$skip_check && $this->getChat($chat_id) !== false) {
            $this->chat_log = $chat_id;
        }
    }
public function setChatLog(string $chat_id, bool $skip_check = false)
    {
        // Check that the bot can write in that chat
        if (!$skip_check && $this->getChat($chat_id) !== false) {
            $this->chat_log = $chat_id;
        }
    }
public function setChatLog ( string $ chat_id , bool $ skip_check = false ) { // Check that the bot can write in that chat if ( ! $ skip_check && $ this -> getChat ( $ chat_id ) !== false ) { $ this -> chat_log = $ chat_id ; } }
\brief Set chat_id choosed for logging.
@param string $chat_id Chat_id choosed.
@param bool $skip_check Skip checking if the chat is valid (set true only if the bot is using webhook to get updates).
\ brief Set chat_id choosed for logging .