How do I add large string as a shortcut?

(Himanshu Teotia) #1

I want to add these shortcuts in a message
(1) Error when logging in
(2) Deactivated wrong password
(3) Something else - talk to agent

(Karen Barker) #2

Hi @himanshuteotia

This actually depends on the platform you’re building your bot on. Facebook messenger does have some limits on the length of text you can add to a button as follows:

Facebook

  • Buttons - 20 characters - after this they will revert simply to text
  • Messages - Must be UTF-8 and has a 640 character limit
  • Question Choices - This uses the button so is a limit of 20 characters or will default to text

Telegram

  • Buttons - Unlimited to the width of the button - if the text is too long telegram truncates the answer and add’s … to indicate there is more text.
  • Messages - 4096 characters
  • Question Choices - same as buttons

Web Messenger

  • Buttons - Unlimited - if a button is longer than the width of the messenger window a horizontal scrollbar is added.
  • Messages - Unlimited
  • Question Choices - Same as Buttons
(Himanshu Teotia) #3

Thanks for letting me know … but is there any solution for this you can recommend to me ?

(Karen Barker) #4

Unfortunately if you’re building for Facebook Messenger then the only option will be to shorten the text length. Unfortunately this is imposed by Facebook and can’t be over-ridden. :disappointed:

1 Like