deleteChatHistory method

Future<Map> deleteChatHistory({
  1. required dynamic chat_id,
  2. bool remove_from_chat_list = true,
  3. bool revoke = true,
  4. required int clientId,
  5. bool isVoid = false,
  6. Duration? delayDuration,
  7. bool? isUseCache,
  8. Duration? durationCacheExpire,
  9. Duration? invokeTimeOut,
  10. String? extra,
})

delete chat history

Implementation

Future<Map> deleteChatHistory({
  required chat_id,
  bool remove_from_chat_list = true,
  bool revoke = true,
  required int clientId,
  bool isVoid = false,
  Duration? delayDuration,
  bool? isUseCache,
  Duration? durationCacheExpire,
  Duration? invokeTimeOut,
  String? extra,
}) async {
  return await request(
    "deleteChatHistory",
    parameters: {
      "chat_id": chat_id,
      "remove_from_chat_list": remove_from_chat_list,
      "revoke": revoke,
    },
    isUseCache: isUseCache,
    durationCacheExpire: durationCacheExpire,
    clientId: clientId,
    isVoid: isVoid,
    extra: extra,
  );
}