getMetaCounters method

Future<Map<String, int>> getMetaCounters(
  1. List<String> keys
)

Gets meta counters.

Implementation

Future<Map<String, int>> getMetaCounters(List<String> keys) async {
  sbLog.i(StackTrace.current, 'keys: $keys');
  checkUnsupportedAction();

  if (keys.isEmpty) {
    throw InvalidParameterException();
  }

  return await chat.apiClient.send(
    ChannelMetaCounterGetRequest(
      chat,
      channelType: channelType,
      channelUrl: channelUrl,
      keys: keys,
    ),
  );
}