Skip to content

Commit 37ed4b1

Browse files
authored
Add Trovo chat message example (#74)
- Add Trovo chat message example - Replace user name values
1 parent 3e04fdd commit 37ed4b1

File tree

1 file changed

+43
-9
lines changed

1 file changed

+43
-9
lines changed

docs/websockets/topics/channel-chat-message.md

Lines changed: 43 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Subscribe to this topic to receive updates whenever a new chat message is sent.
2424

2525
## Examples
2626

27+
See examples below for [Twitch](#twitch), [Youtube](#youtube), [Kick](#kick), and [Trovo](#trovo):
28+
2729
### Twitch
2830

2931
```json
@@ -35,12 +37,12 @@ Subscribe to this topic to receive updates whenever a new chat message is sent.
3537
"room": "5f2de5dd9a474a2c2aaaaaaa",
3638
"data": {
3739
"broadcaster_user_id": "28050000",
38-
"broadcaster_user_login": "c4ldas",
39-
"broadcaster_user_name": "c4ldas",
40+
"broadcaster_user_login": "exampleuser",
41+
"broadcaster_user_name": "exampleuser",
4042
"source_broadcaster_user_id": "",
4143
"chatter_user_id": "28057703",
42-
"chatter_user_login": "c4ldas",
43-
"chatter_user_name": "c4ldas",
44+
"chatter_user_login": "exampleuser",
45+
"chatter_user_name": "exampleuser",
4446
"message_id": "caf9fb9a-a702-486e-92f1-0c60a3a28f38",
4547
"color": "#8AE020",
4648
"message": {
@@ -106,7 +108,7 @@ Subscribe to this topic to receive updates whenever a new chat message is sent.
106108
"authorDetails": {
107109
"channelId": "UCp9noRfodywhm2MX0000000",
108110
"channelUrl": "http://www.youtube.com/channel/UCp9noRfodywhm2MX0000000",
109-
"displayName": "c4ldas",
111+
"displayName": "exampleuser",
110112
"isChatModerator": true,
111113
"isVerified": false,
112114
"isChatOwner": false,
@@ -143,22 +145,54 @@ Subscribe to this topic to receive updates whenever a new chat message is sent.
143145
"message_id": "e7ff356c-9c59-4eb9-8f9e-9f77255caa9b",
144146
"broadcaster": {
145147
"user_id": 54670000,
146-
"username": "c4ldas",
148+
"username": "exampleuser",
147149
"is_verified": false,
148150
"profile_picture": "",
149151
"channel_id": 0,
150-
"channel_slug": "c4ldas"
152+
"channel_slug": "exampleuser"
151153
},
152154
"sender": {
153155
"user_id": 54670000,
154-
"username": "c4ldas",
156+
"username": "exampleuser",
155157
"is_verified": false,
156158
"profile_picture": "",
157159
"channel_id": 0,
158-
"channel_slug": "c4ldas"
160+
"channel_slug": "exampleuser"
159161
},
160162
"content": "Test message with emote [emote:1579033:emojiAstonished]",
161163
"emotes": null
162164
}
163165
}
164166
```
167+
### Trovo
168+
```json
169+
{
170+
"id": "01K0K96X4ZRY83DNP9YZJSXVW2",
171+
"ts": "2025-07-20T06:44:12Z",
172+
"type": "message",
173+
"topic": "channel.chat.message",
174+
"room": "61fa731243f9b92ffaaaaaaa",
175+
"data": {
176+
"id": "1752852369100763935_107354849_145407389_2887140591_5",
177+
"channel_id": "107380000",
178+
"type": 0,
179+
"created_at": "2025-07-20T06:44:12.672224046Z",
180+
"data": {
181+
"avatar": "https://headicon.trovo.live/user/aaaaaaaaaaaaajt4adagzyktda.png?ext=png&t=0",
182+
"roles": [
183+
"streamer"
184+
],
185+
"emotes": [
186+
{
187+
"id": "firedragon!",
188+
"format": 3
189+
}
190+
],
191+
"display_name": "exampleuser",
192+
"username": "exampleuser",
193+
"sender_id": "107380000",
194+
"text": "Test message with emote :firedragon! "
195+
}
196+
}
197+
}
198+
```

0 commit comments

Comments
 (0)