How can we have some channels always show (even when empty) and others not?

We’d like to return a channel list filtered on customTypes. Additionally, 1 customType we want to include empty messages and the others we don’t. However, includeEmptyChannel is global to the query.

How can we have some channels always show (even when empty) and others not?

As a workaround, we tried sending an admin message to the channels we need to always show (so they wouldn’t be empty), but admin messages are delayed (3+ minutes) and therefore that solution won’t work.

Are there any other workaround we could use?

How are you sending the admin message? A 3 minute delay doesn’t make sense, unless you are scheduling it with the Announcement API.

Are you using the message send endpoint, with message_type ADMM?
Messages | Chat Platform API | Sendbird Docs

POST https://api-{application_id}.sendbird.com/v3/{channel_type}/{channel_url}/messages

Thanks, Doug. We’ll try sending the admin message via the messages API rather than the announcement API.

With that said, populating an admin message is more of a workaround for having a more complex query. Is there a way to do something like:

Send back all messages of customType == X including empty messages
AND
Send back all messages of customTpe == Y NOT including empty messages

There is not. You’d have to do two queries and append them. Sending an admin message to the channels would appear to be the simpler solution.

Thanks! We’ll give that a go.