Which ruler established embassies in foreign countries on modern lines?

Ans – Tipu Sultan