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