You need to specify your markup like this :

If you need to have custom keyboard you can follow this :

After that you need to encode your object using json_encode

Finally you just put above code at your query string at the rest of sendMessage.