Send Message
Send a Twitch chat message

Send Message Dialog
Parameters
Message
Text required
Enter the message contents
Send using bot account
Toggle
Default:
Unchecked
- Send the reply using your Twitch Bot account
- Send the reply using your Twitch Broadcaster account
Fallback to Broadcaster
Toggle
Default:
Unchecked
- If
Send using Bot account
is checked, it will attempt to send reply as Twitch Bot account and, if unable, then send as Twitch Broadcaster. - If
Send using Bot account
is unchecked, it will attempt to send reply as Twitch Bot account and, if unable, then do nothing (i.e. the Twitch Bot account is not logged in.
Variables
Name | Type | Description |
---|---|---|
No data |
C# Usage
Sends a Twitch chat message using either Twitch Broadcaster or Twitch Bot account
public void SendMessage(string message, bool useBot = true, bool fallback = true)
messagestring required Enter the message contents
useBotbooltrue
- Send the message using your Twitch Bot accountfalse
- Send the message using your Twitch Broadcaster account
fallbackbooltrue
- (If bot
bool is set to True
), this is the same behaviour as if you had Bot as your preferred account.false
- (If bot
bool is set to True
), it will try to send using only the Bot account, and do nothing if it can't (i.e, not logged in).
using System;
public class CPHInline
{
public bool Execute()
{
//Set message for chat
string message = "This is a test message.";
//Send message with bot account if bot account disconnect
//will use broadcaster account
CPH.SendMessage(message, true, true);
return true;
}
}