# Button limits

## Facebook & Instagram

{% hint style="warning" %}
Facebook and Instagram have limits on the number of buttons: 12 reply (regular keyboard) buttons and 3 inline (in-text) buttons.
{% endhint %}

In Instagram, links can only be placed in inline buttons.

The maximum number of characters in a button name is 23. If there are more, Facebook trims the text after 23 characters and adds an ellipsis.

## Viber

{% hint style="warning" %}
Viber has limits on the number of buttons: 24 reply (regular keyboard) buttons and 7 inline (in-text) buttons.
{% endhint %}

Viber allows you to use a lot of characters in the button name. However, keep in mind that long text will wrap to a new line, and some of the text may be hidden or pushed onto the neighboring button.

## Telegram

The maximum number of characters allowed in button names is 32. If there are more, Telegram cuts out a portion of the text in the middle and inserts an ellipsis.

## TikTok

***Button messages are not available on TikTok Desktop.*** In the desktop chat, you will see a notification stating: "This message format is not supported."

The following button types are available, each with distinct behaviors and limitations:

**1. Callback button**

* **Appearance:** a standard interactive button.
* **Action:** When clicked, it sends a message in the chat (on the user's behalf) containing the button's text.
* **Source:** the text is taken from the **"Reply message text"** field in the button settings.
* **Text limit:** **20 characters**.

**2. URL button**

* **Appearance:** a button styled as a link.
* **Action:** *currently, it behaves identically to a callback button.* **Please note:** TikTok does not support opening URLs in a web view; clicking the button will only send the button's text as a message.
* **Source:** the text is taken from the **"URL"** field in the button settings.
* **Text limit:** **40 characters**.

{% hint style="success" %}
Learn more about using [callback buttons](/chatbot/builder/buttons.md#how-to-add-a-callback-button-facebook-telegram) in MaviBot here.
{% endhint %}

## Inline and reply simultaneously

You cannot send both types of buttons in the same message.

{% hint style="info" %}
[Read about how to combine both types of buttons in a Telegram bot here](#inline-and-reply-simultaneously)
{% endhint %}

In summary, we've explored how to easily create buttons for various messengers using the MaviBot builder—a key step in building fully functional bots.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mavibot.ai/chatbot/builder/buttons/limits.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
