ESP8266 get +IPD message in arduino

I got the ESP8266 running on AT commands arduino Mega,

esp vcc--3.3v ard
TX--TX0
RX--RX0
CHPD--3.3v
GND--GND
Other esp pins unplugged

So I managed to get in the Serial Monitor the incomming messages of the ESP (+IPD) but i cant get them in code (AT commands wont work if Serial.begin) Serial.read wont work either(No RX led blink when getting message just TX blink)

you must cross the connection of rx and tx. and put a 1k between arduino tx to esp8266 rx.
use serial1 (tx1 and rx1) instead.

and try this sketch (a passthru serial sketch)

void setup(){
Serial.begin(115200);
Serial1.begin(115200);
}
void loop() {
if (Serial.available()) {
Serial1.print(Serial.read());
}
if (Serial1.available()) {
Serial.print(Serial1.read());
}
}

and you can enter your AT commands from the serial monitor.