GroupChannelHideRequest constructor

GroupChannelHideRequest(
  1. String channelUrl, {
  2. bool hidePreviousMessages = false,
  3. bool allowAutoUnhide = true,
  4. String? userId,
})

Implementation

GroupChannelHideRequest(String channelUrl,
    {bool hidePreviousMessages = false,
    bool allowAutoUnhide = true,
    String? userId})
    : super(userId: userId) {
  url = 'group_channels/$channelUrl/hide';
  body = {
    'hide_previous_messages': hidePreviousMessages,
    'allow_auto_unhide': allowAutoUnhide,
  };
}