C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VkNet;
using VkNet.Model;
using VkNet.Model.RequestParams;
using VkNet.Enums.Filters;
using VkNet.Enums.SafetyEnums;
using System.Threading;
namespace repaChino
{
internal class Program
{
static void Main(string[] args)
{
string[] tokenS = {//Тут токены аккаунтов, с которых будут кидаться репорты };
string token = //тут токен от аккаунта, на котором зарегано приложение;
Console.Write("Enter userId of Enemy: ");
long userId = long.Parse(Console.ReadLine());
Console.WriteLine("Report Type: \n" +
"1. porn\n" +
"2. spam\n" +
"3. insult\n" +
"4.advertisment\n");
int type = int.Parse(Console.ReadLine());
Console.Write("Write the comment: ");
string comment = Console.ReadLine();
if (type == 1)
{
int counter = 0;
try
{
for (int i = 0; i < tokenS.Length - 1; i++)
{
var api = new VkApi();
api.Authorize(new ApiAuthParams
{
AccessToken = tokenS[i]
});
api.Users.Report(userId, ReportType.Advertisment, comment);
++counter;
Thread.Sleep(1000);
Console.WriteLine($"Next rep {counter}");
}
}
catch
{
Console.WriteLine("No");
}
}
выдаёт такую ошибку: VkNet.Exception.ParameterMissingOrInvalidException: "One of the parameters specified was missing or invalid: Bad reason passed". Не знаю, что делать, некоторые источники смотрел, не нашёл ничего, кроме слов: пропустили какой-то параметр, а я, вроде как, не пропустил. Помогите