client.chat.mute_channel(channel_cids=["messaging:general"], user_id="john")
# With expiration (in milliseconds)
client.chat.mute_channel(channel_cids=["messaging:general"], user_id="john", expiration=30000)Muting Channels
Muting a channel prevents it from triggering push notifications, unhiding, or incrementing the unread count for that user.
By default, mutes remain active indefinitely until removed. You can optionally set an expiration time. The list of muted channels and their expiration times is returned when the user connects.
Mute a Channel
Messages added to muted channels do not increase the unread messages count.
Query Muted Channels
Muted channels can be filtered or excluded by using the muted in your query channels filter.
client.chat.query_channels(filter_conditions={"muted": True})Remove a Channel Mute
Use the unmute method to restore normal notifications and unread behavior for a channel.
client.chat.unmute_channel(channel_cids=["messaging:general"], user_id="john")