@ Override public void handlePress ( CallbackQuery query ) { InlineMenu lastMenu = owner . getLastMenu ( ) ; if ( lastMenu != null ) { executeCallback ( ) ; owner . unregister ( ) ; lastMenu . start ( ) ; } }
If there is a last menu execute callback unregister the current menu and start the parent .