protected function write(array $record)
    {
        $chat_id = $this->bot->getChatLog();
        // Check chat_id is valid
        if ($chat_id !== "") {
            $this->bot->withChatId($chat_id, 'sendMessage', $record['message']);
        }
    }