---
title: "Text messages"
description: "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. Free-form text messages are charged at the promotional rate. For transactional notifications, use Transactional template messages."
canonical: "https://docs.cm.com/messaging/viber/text-messages"
---

# Text messages

> 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. Free-form text messages are charged at the promotional rate. For transactional notifications, use Transactional template messages.

Source: https://docs.cm.com/messaging/viber/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. Free-form text messages are charged at the promotional rate. For transactional notifications, use [Transactional template messages](https://docs.cm.com/messaging/viber/transactional-templates).

## Text formatting

| Format | Markdown | Text to be sent | Message appearance |
| - | - | - | - |
| Bold | One asterisk at each end of   the text: \* | \*This text will be bold\* | **This text will be bold** |
| Italics | One underscore at each end   of the text: \_ | \_This text will be in italics\_ | _This text will be in italics_ |
| Monospace | Three backticks at each end   of the text: \`\`\` | \`\`\`This text will be in monospace\`\`\` | `This text will be in monospace` |
| Strikethrough | One tilde at each end of the   text: \~ | ~~This text will have a   strikethrough~~ | ~~This text will have a strikethrough~~ |

## Text message example

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

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