toggleMessageSenderIsBlocked method
toggle message sender is block
Implementation
Future<Map> toggleMessageSenderIsBlocked({
required int user_id,
bool is_blocked = false,
required int clientId,
bool isVoid = false,
String? extra,
bool? isUseCache,
Duration? durationCacheExpire,
}) async {
return await request(
"toggleMessageSenderIsBlocked",
parameters: {
"sender_id": {
"@type": "messageSenderUser",
"user_id": user_id,
},
"is_blocked": is_blocked,
},
isUseCache: isUseCache,
durationCacheExpire: durationCacheExpire,
clientId: clientId,
isVoid: isVoid,
extra: extra,
);
}