Run a webserver on the RPi you want to control.
Run Mosquitto on the RPi you want to control.
It depends on what you mean by "how do i control one raspberry pi from another".
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.
Any DMs sent on Twitter will be answered next month.
This is a doctor free zone.