updateGroupAnnouncement method

Future<void> updateGroupAnnouncement(
  1. String groupId,
  2. String announcement

Updates the group announcement.

Only the group owner or admin can call this method.

Param groupId The group ID.

Param announcement The group announcement.

Throws A description of the exception. See ChatError.


Future<void> updateGroupAnnouncement(
  String groupId,
  String announcement,
) async {
  Map req = {'groupId': groupId, 'announcement': announcement};
  Map result = await _channel.invokeMethod(
      ChatMethodKeys.updateGroupAnnouncement, req);
  try {
  } on ChatError catch (e) {
    throw e;