> For the complete documentation index, see [llms.txt](https://docs.streamavatars.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/global-functions/writechat.md).

# writeChat

```lua
return function()
    writeChat('hello world'); --prints hello world into your chat!
end
```

{% hint style="info" %}
If you have multiple streaming integrations connected, it will attempt to send the message in each chatroom.
{% endhint %}
