SendChatMessageRequest

@Serializable
data class SendChatMessageRequest(val broadcasterId: String, val senderId: String, val message: String, val replyParentMessageId: String? = null, val forSourceOnly: Boolean? = null)

Twitch API: Send Chat Message

Constructors

Link copied to clipboard
constructor(broadcasterId: String, senderId: String, message: String, replyParentMessageId: String? = null, forSourceOnly: Boolean? = null)

Properties

Link copied to clipboard
@SerialName(value = "broadcaster_id")
val broadcasterId: String

the ID of the broadcaster whose chat room the message will be sent to.

Link copied to clipboard
@SerialName(value = "for_source_only")
val forSourceOnly: Boolean?

determines if the chat message is sent only to the source channel (defined by broadcasterId) during a shared chat session. This parameter can only be set when utilizing an App Access Token. Defaults to false for App Access Tokens.

Link copied to clipboard

the message to send. The message is limited to a maximum of 500 characters. Chat messages can also include emoticons. To include emoticons, use the name of the emote. The names are case sensitive.

Link copied to clipboard
@SerialName(value = "reply_parent_message_id")
val replyParentMessageId: String?

the ID of the chat message being replied to.

Link copied to clipboard
@SerialName(value = "sender_id")
val senderId: String

the ID of the user sending the message. This ID must match the user ID in the user access token.