AddCommunityChat constructor

const AddCommunityChat({
  1. required int communityId,
  2. required int chatId,
  3. required bool isHidden,
})

Adds a chat to a community. If the current user isn't allowed to change the list of chats in the community, then a request to add the chat is sent to administrators of the community instead and the method fails with the error "COMMUNITY_REQUEST_CREATED"

Implementation

const AddCommunityChat({
  required this.communityId,
  required this.chatId,
  required this.isHidden,
});