# PUBLIC_CHANNEL

*LSL constant*

```lsl
integer PUBLIC_CHANNEL = 0;
```

Constant groups: [Channel](/constants/groups/Channel/)

Chat channel that broadcasts to all nearby users & objects. This channel is sometimes referred to as: open chat, local chat and public chat.

If used with a [llRegionSayTo](/functions/llRegionSayTo/), it goes to the specified user or prim. Unlike private channels, the user's attachments do not receive the message.

## Examples

<details open>
<summary>Example 1</summary>

```lsl
default
{
    touch_start(integer num_detected)
    {
        llSay(PUBLIC_CHANNEL, "Hello there, I'm talking in local chat on channel 0.");
    }
}
```

</details>

## See also

### Constants

| Constant | Type | Value | Description |
| --- | --- | --- | --- |
| [DEBUG_CHANNEL](/constants/DEBUG_CHANNEL/) |  |  |  |
| [COMBAT_CHANNEL](/constants/COMBAT_CHANNEL/) |  |  |  |

### Functions

- [llWhisper](/functions/llWhisper/)
- [llSay](/functions/llSay/)
- [llShout](/functions/llShout/)
- [llRegionSay](/functions/llRegionSay/)
- [llRegionSayTo](/functions/llRegionSayTo/)
- [llListen](/functions/llListen/)
- [llDialog](/functions/llDialog/)
- [llTextBox](/functions/llTextBox/)

### Events

- [listen](/events/listen/)

---

*Source: [PUBLIC CHANNEL](https://wiki.secondlife.com/wiki/PUBLIC_CHANNEL) on the Second Life Wiki. Content from the Second Life Wiki article PUBLIC CHANNEL (revision 1217155, 2024-08-15), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/constants/PUBLIC_CHANNEL/
