Managing the buttons and their payloads

I have made buttons but when I am pressing one button the other one is getting pressed automatically.

I have seen the moodbot example, like in that example the user presses a button it returns a string as payload and then the intent of that string is found and the bot responds accordingly but as there is no code present I was not able to do the same on my bot or understand how it works. I wanted to apply the same functionality in weatherbot.

I am also returnig string as payload but both the buttons are getting pressed and then no action is being performed by the bot.