This webhook event is invoked when a group channel with invited members is created through the Chat API or SDKs. For members who have already been invited to the group channel, the group_channel:invite webhook isn't invoked.
Once this webhook is delivered, the group_channel:join webhook is invoked. The following shows a webhook payload of a group_channel:create event.
Note: By default, the members property is excluded from the payload. To include members, turn on the Include member information option under Settings > Chat > Webhooks on Sendbird Dashboard. Regardless of this option, webhook payloads of Supergroup channels don't include member information.
This webhook event is invoked and delivered when one of the following group channel properties has been changed: name, cover_url, custom_type, channel_type, data, and access_code. The changes property in the payload contains the old and new values of the changed channel properties. The following shows a webhook payload of a group_channel:changed event.
Note: By default, the members property is excluded from the payload. To include members, turn on the Include member information option under Settings > Chat > Webhooks on Sendbird Dashboard. Regardless of this option, webhook payloads of Supergroup channels don't include member information.
This webhook event is invoked when a user invites another user. The following shows a webhook payload of a group_channel:invite event.
Note: By default, the members property is excluded from the payload. To include members, turn on the Include member information option under Settings > Chat > Webhooks on Sendbird Dashboard. Regardless of this option, webhook payloads of Supergroup channels don't include member information.
This webhook event is invoked when a user declines an invitation. The users property indicates the members who have declined invitations and are in pending status. The following shows a webhook payload of a group_channel:decline_invite event.
Note: By default, the members property is excluded from the payload. To include members, turn on the Include member information option under Settings > Chat > Webhooks on Sendbird Dashboard. Regardless of this option, webhook payloads of Supergroup channels don't include member information.
{
"category": "group_channel:decline_invite",
"declined_invite_at": 1586446887080,
"members": [
{
"user_id": "Glen",
"nickname": "YoungAndTall",
"profile_url": "https://sendbird.com/main/img/profiles/profile_52_512px.png",
"is_active": true,
"is_online": false,
"is_hidden": 0,
"state": "invited", # The value can be either `joined` or `invited`.
"unread_message_count": 9,
"total_unread_message_count": 9,
"channel_unread_message_count": 0,
"channel_mention_count": 0,
"push_enabled": false,
"push_trigger_option": "default",
"do_not_disturb": false,
"metadata": {}
},
... # More members
],
"channel": {
"name": "Sport center members - welcome everyone!",
"channel_url": "sendbird_group_channel_6122393_1379dd647e15ddb2471c933794b6cb4651498933",
"custom_type": "personal",
"is_distinct": true,
"is_public": false,
"is_super": false,
"is_ephemeral": false,
"is_discoverable": false,
"data": ""
},
"users": [ # Users who have declined the invitation to the channel
{
"user_id": "Jeff",
"nickname": "Oldies but goodies",
"profile_url": "https://sendbird.com/main/img/profiles/profile_38_512px.png",
"inviter": {
"user_id": "David",
"nickname": "TallAndStrong",
"profile_url": "https://sendbird.com/main/img/profiles/profile_30_512px.png",
"metadata": {}
},
"metadata": {}
}
],
"app_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
This webhook event is invoked when a user joins a group channel. The users property indicates members who have accepted invitations or joined the channel while auto_accept is set to true. The following shows a webhook payload of a group_channel:join event.
Note: By default, the members property is excluded from the payload. To include members, turn on the Include member information option under Settings > Chat > Webhooks on Sendbird Dashboard. Regardless of this option, webhook payloads of Supergroup channels don't include member information.
{
"category": "group_channel:join",
"joined_at": 1586445400845,
"members": [
{
"user_id": "Aaron",
"nickname": "Singer-songwriter",
"profile_url": "https://sendbird.com/main/img/profiles/profile_30_512px.png",
"is_active": true,
"is_online": false,
"is_hidden": 0,
"state": "joined", # The value can be either `joined` or `invited`.
"unread_message_count": 9,
"total_unread_message_count": 9,
"channel_unread_message_count": 0,
"channel_mention_count": 0,
"push_enabled": false,
"push_trigger_option": "default",
"do_not_disturb": false,
"metadata": {}
},
... # More members
],
"channel": {
"name": "Sport center members - welcome everyone!",
"channel_url": "sendbird_group_channel_6122393_1379dd647e15ddb2471c933794b6cb4651498933",
"custom_type": "personal",
"is_distinct": true,
"is_public": false,
"is_super": false,
"is_ephemeral": false,
"is_discoverable": false,
"data": ""
},
"users": [ # Users who have joined the channel
{
"user_id": "Glen",
"nickname": "YoungAndTall",
"profile_url": "https://sendbird.com/main/img/profiles/profile_52_512px.png",
"inviter": {
"user_id": "David",
"nickname": "TallAndStrong",
"profile_url": "https://sendbird.com/main/img/profiles/profile_30_512px.png",
"metadata": {}
},
"metadata": {}
},
... # More users
],
"app_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
This webhook event is invoked when a user leaves a group channel. The users property indicates those who have left a group channel, whereas the members indicates those who still remain in the channel. The channel_unread_message_count is a value for a user's unread message count of the channel when the user left. The following shows a webhook payload of a group_channel:leave event.
Note: By default, the members property is excluded from the payload. To include members, turn on the Include member information option under Settings > Chat > Webhooks on Sendbird Dashboard. Regardless of this option, webhook payloads of Supergroup channels don't include member information.
{
"category": "group_channel:leave",
"left_at": 1586446452882,
"members": [
{
"user_id": "Glen",
"nickname": "YoungAndTall",
"profile_url": "https://sendbird.com/main/img/profiles/profile_52_512px.png",
"is_active": true,
"is_online": false,
"is_hidden": 0,
"state": "joined", # The value can be either `joined` or `invited`.
"unread_message_count": 9,
"total_unread_message_count": 9,
"channel_unread_message_count": 0,
"channel_mention_count": 0,
"push_enabled": false,
"push_trigger_option": "default",
"do_not_disturb": false,
"metadata": {}
},
... # More members
],
"channel": {
"name": "Sport center members - welcome everyone!",
"channel_url": "sendbird_group_channel_6122393_1379dd647e15ddb2471c933794b6cb4651498933",
"custom_type": "personal",
"is_distinct": true,
"is_public": false,
"is_super": false,
"is_ephemeral": false,
"is_discoverable": false,
"data": ""
},
"users": [ # Users who have left the channel
{
"user_id": "Jeff",
"nickname": "Oldies but goodies",
"profile_url": "https://sendbird.com/main/img/profiles/profile_38_512px.png",
"channel_unread_message_count": 2,
"metadata": {}
}
],
"app_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
This webhook event is invoked when a message is sent within a group channel. The following shows a webhook payload of a group_channel:message_send event.
Note: By default, the members property is excluded from the payload. To include members, turn on the Include member information option under Settings > Chat > Webhooks on Sendbird Dashboard. Regardless of this option, webhook payloads of Supergroup channels don't include member information.
TextFileAdmin
{
"category": "group_channel:message_send",
"sender": {
"user_id": "Jeff",
"nickname": "Oldies but goodies",
"profile_url": "https://sendbird.com/main/img/profiles/profile_38_512px.png",
"metadata": {}
},
"silent": false,
"sender_ip_addr": "xxx.xxx.xxx.xx",
"custom_type": "",
"mention_type": "users",
"mentioned_users": [],
"parent_message_id": 238302716, # Included only when the message is a threaded reply.
"members": [
{
"user_id": "Jeff",
"nickname": "Oldies but goodies",
"profile_url": "https://sendbird.com/main/img/profiles/profile_38_512px.png",
"is_active": true,
"is_online": false,
"is_hidden": 0,
"state": "joined", # The value can be either `joined` or `invited`.
"is_blocking_sender": false,
"is_blocked_by_sender": false,
"unread_message_count": 16,
"total_unread_message_count": 16,
"channel_unread_message_count": 5,
"channel_mention_count": 0,
"push_enabled": false,
"push_trigger_option": "default",
"do_not_disturb": false,
"metadata": {}
},
... # More members
],
"type": "MESG", # Text message
"payload": {
"message_id": 238303376,
"custom_type": "",
"message": "I have a suggestion for our team.",
"translations": {
"en": "",
"de": "",
...
},
"created_at": 1540798555343,
"data": ""
},
"message_events": {
"update_last_message": true,
"update_unread_count": true,
"update_mention_count": true,
"send_push_notification": "receivers"
},
"channel": {
"name": "Sendbird engineers talking room",
"channel_url": "sendbird_group_channel_47226288_21c0d617e45a7db4e12a7f5efdb4df4743b11c16",
"custom_type": "business",
"is_distinct": false,
"is_public": false,
"is_super": false,
"is_ephemeral": false,
"is_discoverable": false,
"data": ""
},
"sdk": "Android", # iOS, Android, JavaScript, .NET or API
"app_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
This webhook event is invoked when a user has no more unread messages in a group channel. The following shows a webhook payload of a group_channel:message_read event.
Note: By default, the members property is excluded from the payload. To include members, turn on the Include member information option under Settings > Chat > Webhooks on Sendbird Dashboard. Regardless of this option, webhook payloads of Supergroup channels don't include member information.
{
"category": "group_channel:message_read",
"members": [ # Provide only the member who has read the message to minimize backward issues.
{
"user_id": "John",
"nickname": "Sendbirdian",
"profile_url": "https://sendbird.com/main/img/profiles/profile_24_512px.png",
"is_active": true,
"is_online": false,
"is_hidden": 0,
"state": "joined", # The value can be either `joined` or `invited`.
"unread_message_count": 0,
"total_unread_message_count": 3,
"channel_unread_message_count": 0,
"channel_mention_count": 0,
"push_enabled": false,
"push_trigger_option": "default",
"do_not_disturb": false,
"metadata": {}
}
],
"channel": {
"name": "Let's make a good company",
"channel_url": "sendbird_group_channel_6037267_600ddc81a5e23049c804193370d47217fa2ed5f9",
"custom_type": "business",
"is_distinct": false,
"is_public": false,
"is_super": false,
"is_ephemeral": false,
"is_discoverable": false,
"data": ""
},
"read_updates": [
{
"user_id": "John",
"read_ts": 1540864257418,
"channel_unread_message_count": 0,
"total_unread_message_count": 3
}
],
"app_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
This webhook event is invoked and delivered when one of the following message properties is updated: message, custom_type, data, mention_type, message_events, and mentioned_user_ids. The changes property in the payload contains the old and new values of the changed message properties. The following shows a webhook payload of a group_channel:message_update event.
Note: By default, the members property is excluded from the payload. To include members, turn on the Include member information option under Settings > Chat > Webhooks on Sendbird Dashboard. Regardless of this option, webhook payloads of Supergroup channels don't include member information.
TextFileAdmin
{
"category": "group_channel:message_update",
"sender": {
"user_id": "Jeff",
"nickname": "Oldies but goodies",
"profile_url": "https://sendbird.com/main/img/profiles/profile_38_512px.png",
"metadata": {}
},
"changes": [
{
"key": "message",
"old": "I have a suggestion for our team.",
"new": "I need some time to think about our team."
},
{
"key": "message_events",
"type": "object",
"old": {
"send_push_notification": "receivers",
"update_unread_count": true,
"update_mention_count": true,
"update_last_message": true
},
"new": {
"send_push_notification": "none",
"update_unread_count": false,
"update_mention_count": true,
"update_last_message": true
}
}
],
"members": [
{
"user_id": "Jeff",
"nickname": "Oldies but goodies",
"profile_url": "https://sendbird.com/main/img/profiles/profile_38_512px.png",
"is_active": true,
"is_online": false,
"is_hidden": 0,
"state": "joined", # The value can be either `joined` or `invited`.
"is_blocking_sender": false,
"is_blocked_by_sender": false,
"unread_message_count": 16,
"total_unread_message_count": 16,
"channel_unread_message_count": 5,
"channel_mention_count": 0,
"push_enabled": false,
"push_trigger_option": "default",
"do_not_disturb": false,
"metadata": {}
},
... # More members
],
"custom_type": "",
"mention_type": "users",
"mentioned_users": [],
"parent_message_id": 238302716, # Included only when the message is a threaded reply.
"type": "MESG", # Text message
"payload": {
"message_id": 238303376,
"custom_type": "",
"message": "I need some time to think about our team.",
"translations": {
"en": "",
"de": "",
...
},
"created_at": 1484205447940,
"data": ""
},
"channel": {
"name": "Sendbird engineers talking room",
"channel_url": "sendbird_group_channel_47226288_21c0d617e45a7db4e12a7f5efdb4df4743b11c16",
"custom_type": "business",
"is_distinct": false,
"is_public": false,
"is_super": false,
"is_ephemeral": false,
"is_discoverable": false,
"data": ""
},
"sdk": "Android", # iOS, Android, JavaScript, .NET or API
"app_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
This webhook event is invoked when a message is deleted from a group channel. The following shows a webhook payload of a group_channel:message_delete event.
Note: By default, the members property is excluded from the payload. To include members, turn on the Include member information option under Settings > Chat > Webhooks on Sendbird Dashboard. Regardless of this option, webhook payloads of Supergroup channels don't include member information.
TextFileAdmin
{
"category": "group_channel:message_delete",
"sender": {
"user_id": "Jay",
"nickname": "Mighty",
"profile_url": "https://sendbird.com/main/img/profiles/profile_26_512px.png",
"metadata": {}
},
"members": [
{
"user_id": "Jin",
"nickname": "JinJin",
"profile_url": "https://sendbird.com/main/img/profiles/profile_24_512px.png",
"is_active": true,
"is_online": false,
"is_hidden": 0,
"state": "joined", # The value can be either `joined` or `invited`.
"unread_message_count": 5,
"total_unread_message_count": 5,
"channel_unread_message_count": 5,
"channel_mention_count": 0,
"push_enabled": false,
"push_trigger_option": "default",
"do_not_disturb": false,
"metadata": {}
},
... # More members
],
"custom_type": "",
"parent_message_id": 210902213, # Included only when the message is a threaded reply.
"type": "MESG",
"channel": {
"name": "Trip to Africa",
"channel_url": "sendbird_group_channel_6037267_600ddc81a5e23049c804193370d47217fa2ed5f9",
"custom_type": "",
"is_distinct": false,
"is_public": false,
"is_super": false,
"is_ephemeral": false,
"is_discoverable": false,
"data": ""
},
"payload": {
"message_id": 244303321,
"custom_type": "",
"message": "Hi, this text message will be deleted.",
"translations": {},
"data": "",
"created_at": 0
},
"app_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
This webhook event is invoked when a channel operator freezes or unfreezes a group channel. The default value for freeze is false. The following shows a webhook payload of a group_channel:freeze_unfreeze event.
This webhook event is invoked when a user deletes reactions from a message. The following shows a webhook payload of a group_channel:reaction_delete event.