# Send chat message as channel broadcaster

**URL:** <https://discuss.dev.twitch.com/t/send-chat-message-as-channel-broadcaster/1023>\
**Category:** Uncategorized\
**Created:** [August 1, 2014, 11:58am UTC](https://discuss.dev.twitch.com/t/send-chat-message-as-channel-broadcaster/1023 "2014-08-01T11:58:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![NullBy7e1](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@NullBy7e1](https://discuss.dev.twitch.com/u/NullBy7e1)\
**Post date:** [August 1, 2014, 11:58am UTC](https://discuss.dev.twitch.com/t/send-chat-message-as-channel-broadcaster/1023/1 "2014-08-01T11:58:55Z")

</div>

I know that there is a specific scope for this but how would I do this exactly?  
I.e my bots !purge command cannot timeout moderators because he is obviously not the channel owner.

---

<div class="post-metadata">

**Author:** ![Farcrada](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/farcrada/32/5546_2.png) [@Farcrada](https://discuss.dev.twitch.com/u/Farcrada)\
**Post date:** [August 1, 2014, 7:18pm UTC](https://discuss.dev.twitch.com/t/send-chat-message-as-channel-broadcaster/1023/2 "2014-08-01T19:18:25Z")

</div>

Hang on… You want to send a channel message as a broadcaster automatically?

Why not set-up a message response…? I mean, you got the timeout(s) working.

---

<div class="post-metadata">

**Author:** ![george](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/george/32/120_2.png) [@george](https://discuss.dev.twitch.com/u/george)\
**Post date:** [August 1, 2014, 9:03pm UTC](https://discuss.dev.twitch.com/t/send-chat-message-as-channel-broadcaster/1023/3 "2014-08-01T21:03:05Z")

</div>

You will need to obtain a `chat_login` token for the broadcaster’s account and then run the bot via IRC through the broadcaster’s account.

---

<div class="post-metadata">

**Author:** ![NullBy7e1](https://avatars.discourse-cdn.com/v4/letter/n/e68b1a/32.png) [@NullBy7e1](https://discuss.dev.twitch.com/u/NullBy7e1)\
**Post date:** [August 1, 2014, 11:33pm UTC](https://discuss.dev.twitch.com/t/send-chat-message-as-channel-broadcaster/1023/4 "2014-08-01T23:33:01Z")

</div>

George, do I need the user’s password or will the received token be enough?

---

<div class="post-metadata">

**Author:** ![Fugiman](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/fugiman/32/108_2.png) [@Fugiman](https://discuss.dev.twitch.com/u/Fugiman)\
**Post date:** [August 1, 2014, 11:59pm UTC](https://discuss.dev.twitch.com/t/send-chat-message-as-channel-broadcaster/1023/5 "2014-08-01T23:59:13Z")

</div>

The token is the password you provide to IRC. See [https://github.com/justintv/Twitch-API/blob/master/IRC.md](https://github.com/justintv/Twitch-API/blob/master/IRC.md) for more details.
