Files
fuckKomet/lib/api/api_service_complaints.dart
2025-12-10 17:34:10 +03:00

22 lines
770 B
Dart

// hey
part of 'api_service.dart';
extension ApiServiceComplaints on ApiService {
void getComplaints() {
final payload = {"complainSync": 0};
_sendMessage(162, payload);
}
// If you're touching ( you doing this rignt now ) this file, STOP IMEDIATLY! This is violiating TeamKomet code revision policy!
// If you're touching ( you doing this rignt now ) this file, AND DONT WANT TO STOP! REFACTOR IT IMMEDIATLY TO MAKE SOME SENSE AND DONT LOOK LIKE SHIT BY AI
void sendComplaint(int chatId, String messageId, int typeId, int reasonId) {
final payload = {
"reasonId": reasonId,
"parentId": chatId,
"typeId": 3,
"ids": [int.parse(messageId)], // Конвертируем в число
};
_sendMessage(161, payload);
}
}