@ Controller ( events = EventType . QUICK_REPLY , pattern = "(yes|no)" ) public void onReceiveQuickReply ( Event event ) { if ( "yes" . equals ( event . getMessage ( ) . getQuickReply ( ) . getPayload ( ) ) ) { reply ( event , "Cool! You can type: \n 1) Show Buttons \n 2) Show List \n 3) Setup meeting" ) ; } else { reply ( event , "See you soon!" ) ; } }
This method gets invoked when the user clicks on a quick reply button whose payload is either yes or no .