How to change the layout of the ReplyKeyboardMarkup / Quick Reply in api.ai to the Telegram?

0

ai to create a bot, using the quick reply from the service the keyboard layout (ReplyKeyboardMarkup) in the Telegram is vertical, thus cutting all messages:

Inoticedthatinthe documentation of Telegram bots, you have the option of customizing this layout. How can this be done in api.ai?

    
asked by anonymous 02.03.2017 / 13:41

1 answer

0

I was able to stop using Quick Reply and used Custom Payload that allows you to inform the custom response json just like in the platform documentation that you are using. As in my case Telegram looks like this:

  "telegram": {
    "text": "Algumas coisa que posso fazer:",
    "reply_markup": {
      "resize_keyboard": true, "one_time_keyboard": true, 
      "keyboard": [
        ["abrir chamado"],
        ["buscar contracheque"],
        ["consultar avaliações"],
        ["o que mais você pode fazer?"]
        ]

    }
  },

Result was quite what I expected:

This is the tip for the next ones to go through this problem of having to customize the Telegram keyboard by api.ai.

    
02.03.2017 / 14:04