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']);
        }
    }
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']);
        }
    }
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' ] ) ; } }
\brief Send the message to telegram chat
@param array $record
\ brief Send the message to telegram chat