// get current dialog static L getDialog() { ret getDialog(getDialogID()); } // get a specific dialog by id static L getDialog(S dialogID) { L history = cast get(getMainBot(), "history"); ret filterByField(history, "dialogID", dialogID); }