## Text formatting (BB codes)

Message text supports BB codes for styling. Use them in the `message` field when sending and editing messages.

## List of BB codes

| Code | Description | Example |
|-----|---------|--------|
| `[B]...[/B]` | Bold text | `[B]Important[/B]` |
| `[I]...[/I]` | Italic | `[I]note[/I]` |
| `[U]...[/U]` | Underlined | `[U]attention[/U]` |
| `[S]...[/S]` | Strikethrough | `[S]deprecated[/S]` |
| `[URL=link]text[/URL]` | Hyperlink | `[URL=https://example.com]Open[/URL]` |
| `[CODE]...[/CODE]` | Monospaced code block | `[CODE]console.log('hi')[/CODE]` |
| `[BR]` or `\n` | Line break | — |
| `[SEND=value]text[/SEND]` | A click sends the value as a message | `[SEND=/help]Help[/SEND]` |
| `[PUT=value]text[/PUT]` | Insert text into the input field without sending | `[PUT=/search ]Search[/PUT]` |
| `[IMG]link[/IMG]` | Inline image | `[IMG]https://example.com/pic.png[/IMG]` |
| `[CALL=number]text[/CALL]` | Call link | `[CALL=+12025550123]Call[/CALL]` |
| `[SIZE=number]...[/SIZE]` | Text size | `[SIZE=18]Heading[/SIZE]` |
| `[COLOR=color]...[/COLOR]` | Text color (name or hexadecimal code) | `[COLOR=#ff0000]Red[/COLOR]` |

## Example

```json
{
  "message": "[B]Task #42[/B]\nStatus: [COLOR=#00aa00]done[/COLOR]\n[URL=https://example.com/tasks/42]Open the task[/URL]"
}
```

## See also

- [Send a message](/docs/chats/messages/send)
- [Keyboard](/docs/chats/messages/keyboard)
- [Attachments](/docs/chats/messages/attach)
