Skip to content

Instantly share code, notes, and snippets.

View warodri-sendbird's full-sized avatar

Walter Rodriguez warodri-sendbird

View GitHub Profile
@warodri-sendbird
warodri-sendbird / supergroup_to_group_channel.js
Created December 1, 2021 17:25 — forked from charisTheo/supergroup_to_group_channel.js
This script migrates all messages and users from a Sendbird supergroup channel to a group channel
/*
* This script migrates all messages and users
* from a Sendbird supergroup channel to a group channel
* by creating a new group channel and deleting the old supergroup channel.
*
* Note: make sure you have chat history enabled for newly joined members
* Enable it by selecting an App from the Dashboard and toggle the checkbox under
* Settings > Chat > Group Channels > Chat history
*
* To use this script, you need to change APP_ID and API_TOKEN below