uploadGroupSharedFile method
Uploads group shared files.
Param groupId The group ID.
Param filePath The local path of the file to upload.
Returns None.
Throws Exception description, see ChatError.
Implementation
Future<void> uploadGroupSharedFile(
String groupId,
String filePath,
) async {
try {
Map req = {'groupId': groupId, 'filePath': filePath};
Map result = await platform_interface.Client.instance.groupManager
.callNativeMethod(ChatMethodKeys.uploadGroupSharedFile, req);
ChatError.hasErrorFromResult(result);
} catch (e) {
rethrow;
}
}