# Empty messages are sent to the chat

**URL:** <https://discuss.dev.twitch.com/t/empty-messages-are-sent-to-the-chat/12823>\
**Category:** Chat and IRC\
**Created:** [November 11, 2017, 6:28pm UTC](https://discuss.dev.twitch.com/t/empty-messages-are-sent-to-the-chat/12823 "2017-11-11T18:28:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![am\_1](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@am\_1](https://discuss.dev.twitch.com/u/am_1)\
**Post date:** [November 11, 2017, 6:28pm UTC](https://discuss.dev.twitch.com/t/empty-messages-are-sent-to-the-chat/12823/1 "2017-11-11T18:28:02Z")

</div>

Recently Twitch chat was changed so that messages composed only of spaces are now sent to the chat. Sending a single space (" ") was a useful workaround for some chat bots to allow a custom command not to send a message if certain conditions were not met.

Although the standard Twitch chat client won’t allow a chatter to send a message containing only spaces, these messages can be sent programmatically. Is this change a bug or is it the intended behavior?

---

<div class="post-metadata">

**Author:** ![xangold](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/xangold/32/527_2.png) [@xangold](https://discuss.dev.twitch.com/u/xangold)\
**Post date:** [November 16, 2017, 12:33am UTC](https://discuss.dev.twitch.com/t/empty-messages-are-sent-to-the-chat/12823/2 "2017-11-16T00:33:33Z")

</div>

This would absolutely be a bug. Do you mind sending me an email at [aaron@twitch.tv](mailto:aaron@twitch.tv) (and some example chat messages to #xangold) ?

Would also love it if you could email a bug report to [twitch.tv/help](http://twitch.tv/help) so it gets into their queue. Even if it’s resolved on the side, I’d like that documented in case I don’t get time to get to it.

Thanks.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [November 16, 2017, 7:58am UTC](https://discuss.dev.twitch.com/t/empty-messages-are-sent-to-the-chat/12823/3 "2017-11-16T07:58:54Z")

</div>

I have also observed that sending:

> \o/

Results in no message appearing in “new site” chat… (Need to cross check if my bot picked it up)

---

<div class="post-metadata">

**Author:** ![Alca](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/alca/32/2783_2.png) [@Alca](https://discuss.dev.twitch.com/u/Alca)\
**Post date:** [November 16, 2017, 7:56pm UTC](https://discuss.dev.twitch.com/t/empty-messages-are-sent-to-the-chat/12823/4 "2017-11-16T19:56:25Z")

</div>

Messages starting with “\” do not appear to the local user on Twitch but are sent and others should see it. This has been an issue for some time now.

---

<div class="post-metadata">

**Author:** ![sanso](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sanso](https://discuss.dev.twitch.com/u/sanso)\
**Post date:** [November 28, 2017, 7:30pm UTC](https://discuss.dev.twitch.com/t/empty-messages-are-sent-to-the-chat/12823/6 "2017-11-28T19:30:35Z")

</div>

Hey,  
I was affected by this as well and I found out when exactly this is happening. If you use the Popout-Chat function you will see the empty messages that OP talked about. Since an Iframe can hold the popout URL (for example [https://www.twitch.tv/channelname/chat?darkpopout](https://www.twitch.tv/channelname/chat?darkpopout)) chat as well you would see the empty messages. Using [https://www.twitch.tv/embed/channelname/chat](https://www.twitch.tv/embed/channelname/chat) as documented [here](https://dev.twitch.tv/docs/embed#embedding-chat) will fix the issue immediately - at least for embedded chats.

Regards  
sanso

Edit: apparently thats not the case for everyone. At least I’m confident now, that its an issue with the chat client.

---

<div class="post-metadata">

**Author:** ![sanso](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@sanso](https://discuss.dev.twitch.com/u/sanso)\
**Post date:** [December 14, 2017, 2:36pm UTC](https://discuss.dev.twitch.com/t/empty-messages-are-sent-to-the-chat/12823/7 "2017-12-14T14:36:19Z")

</div>

Hi xangold,

I cannot reproduce the error anymore in any chat interface. Was this issue resolved?

Regards  
sanso

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [January 13, 2018, 2:36pm UTC](https://discuss.dev.twitch.com/t/empty-messages-are-sent-to-the-chat/12823/8 "2018-01-13T14:36:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
