public function renameChat($chat, $newChatTitle)
    {
        return $this->exec('rename_chat', $this->escapePeer($chat), $this->escapeStringArgument($newChatTitle));
    }
public function renameChat($chat, $newChatTitle)
    {
        return $this->exec('rename_chat', $this->escapePeer($chat), $this->escapeStringArgument($newChatTitle));
    }
public function renameChat ( $ chat , $ newChatTitle ) { return $ this -> exec ( 'rename_chat' , $ this -> escapePeer ( $ chat ) , $ this -> escapeStringArgument ( $ newChatTitle ) ) ; }
Renames a chat. Both, the chat title and the print-name will change.

@param string $chat The name of the chat (not the title). Gets escaped with escapePeer().
@param string $chatTitle The new title of the chat.

@return boolean true on success, false otherwise

@uses exec()
@uses escapePeer()
@uses escapeStringArgument()
Renames a chat . Both the chat title and the print - name will change .