Can I just be cynical about such a stupid question? Obviously you're ignoring which side is attacking. But due to muslim tactics, it is easy. UN has rules about declaring war and peace that all countries (including Iran) have agreed to uphold, and muslims have a tradition of lying with peace treaties (you see, apparently some prophet did that, so it's a bit of a religious tradition). And I mean actually using peace treaties as tools for deception, ie. lying. I'm not saying nobody else does that, Russia and China certainly have the same habit, but they do too.
So because they lie anyway, muslims will very quickly declare peace ... and then attack again. As I said, not exactly a new thing, that. Iran falsely declared peace with Israel (due to the Iraq war) before the Arab nations did. Iran even betrayed the Palestinians and the Soviets for that peace treaty. They never had any intention on following through on the agreement to Israel either, of course.
So can I ask: do you believe in international law? Because either international law works and Israel is at peace. In fact Israel is currently at peace. Iran has not declared war on them, and Palestinians have declared peace and signed a peace treaty ...
Or international law doesn't really exist, and any kind of diplomacy with Palestinians has no point. Because any agreement from their side, whether signed or not ... isn't worth the paper it's written on. Same with Iran's regime.
Of course Palestinians have already violated the treaties where they declared that peace. Oh and not just violated it. Because there's violating a peace treaty and then there is putting out press releases saying you're proudly violating the peace treaty, while committing a massacre on Palestinians. Hamas likes to take such a drastically stupid approach, then wonder why Israel keeps reading their exact intentions so very, very, very well.
https://www.politico.com/news/2026/01/26/hamas-must-disarm-t...
(oh here's Hamas proudly declaring they're violating the peace treaty, while committing yet another massacre against Palestinians: https://www.bbc.com/news/articles/cjr034p5prlo, and here again: https://www.algemeiner.com/2026/01/29/hamas-doubles-down-ref... ... and again: https://www.timesofisrael.com/liveblog_entry/khaled-mashaal-... )