# BOT_LISTEN_LOCAL_CHAT

Commands bot to listen to messages in local chat and send them to the script.

```snippet totalcontrol-variables-EsRYwBUh4J
str | —
id  | —
```

## Result

One of the following events will be generated:

* [BOT_EVENT_LISTEN_SUCCESS](/doc/994aec1c-cba2-4773-8eb9-4a3de6e53443)
* [BOT_COMMAND_FAILED](/doc/845c20e0-6816-49fc-9d3e-ce8f552f79ac)

Additionally, the following event is generated every time the bot sees a local chat message:

* [`BOT_EVENT_LISTEN_LOCAL_CHAT`](/doc/bot_listen_local_chat-D6I9wfQBZ6)

## Example

```csharp
llMessageLinked(LINK_SET, BOT_LISTEN_LOCAL_CHAT, "", "");
```