# Text messages

# Overview

Text messages are the simplest form of communication on Viber, supporting up to **1,000 characters** (including spaces, emojis, and markdown symbols) with optional text formatting. Messages use UTF-8 encoding and support bold, italics, monospace, and strike through formatting using markdown syntax. Emojis can be added using emoji codes, and line breaks are supported. Text messages are available for both transactional and promotional categories.

## Text formatting

[block:parameters]
{
  "data": {
    "h-0": "Format",
    "h-1": "Markdown",
    "h-2": "Text to be sent",
    "h-3": "Message appearance",
    "0-0": "Bold",
    "0-1": "One asterisk at each end of  \nthe text: \\*",
    "0-2": "\\*This text will be bold\\*",
    "0-3": "**This text will be bold**",
    "1-0": "Italics",
    "1-1": "One underscore at each end  \nof the text: \\_",
    "1-2": "\\_This text will be in italics\\_",
    "1-3": "_This text will be in italics_",
    "2-0": "Monospace",
    "2-1": "Three backticks at each end  \nof the text: \\`\\`\\`",
    "2-2": "\\`\\`\\`This text will be in monospace\\`\\`\\`",
    "2-3": "`This text will be in monospace`",
    "3-0": "Strikethrough",
    "3-1": "One tilde at each end of the  \ntext: ~",
    "3-2": "~This text will have a  \nstrikethrough~",
    "3-3": "~~This text will have a strikethrough~~"
  },
  "cols": 4,
  "rows": 4,
  "align": [
    null,
    null,
    null,
    "left"
  ]
}
[/block]

## Text message example

The example below will send a simple text-only Viber message.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/2cb5c21-image.png",
        null,
        ""
      ],
      "align": "center",
      "sizing": "500px"
    }
  ]
}
[/block]

```json
{
    "messages": {
        "msg": [
            {
                "from": "Your Sender",
                "to": [
                    {
                        "number": "Phone number recipient"
                    }
                ],
                "allowedChannels": [
                    "Viber"
                ],
                "body": {
                    "type": "auto",
                    "content": ""
                },
                "richContent": {
                    "conversation": [
                        {
                            "text": "Be part of it."
                        }
                    ]
                }
            }
        ]
    }
}
```