Reply to Message
Send a reply to a specific Twitch chat message

Reply to Message Dialog
Parameters
Reply Id
Text required
Default:
%msgId%
Enter the unique ID of the message to reply to
All triggers that contain the
Twitch Chat
variables, will populate the %msgId%
variableMessage
Text required
Enter the message contents
Send using bot account
Toggle
- Send the reply using your Twitch Bot account
- Send the reply using your Twitch Broadcaster account
Fallback to Broadcaster
Toggle
- 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
Send a reply to a specific Twitch chat message
public void TwitchReplyToMessage(string message, string replyId, bool useBot = true, bool fallback = true)
messagestring required Enter the message contents
replyIdstring required Enter the unique ID of the message to reply to
useBotbooltrue
- Send the reply using your Twitch Bot accountfalse
- Send the reply 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()
{
//Get message id to reply to
CPH.TryGetArg("msgId",out string messageId);
//Set message for reply
string message = "This is a test reply.";
//Send reply with bot account
CPH.TwitchReplyToMessage(message, messageId, true, true);
return true;
}
}