mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
30 lines
798 B
C#
30 lines
798 B
C#
using System;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Kruzya.TelegramBot.CombotAntiSpam.Combot;
|
|
|
|
internal class CombotApiResponse
|
|
{
|
|
public class ApiResult
|
|
{
|
|
[JsonPropertyName("messages")]
|
|
public string[] Messages { get; set; }
|
|
|
|
[JsonPropertyName("time_added")]
|
|
public int TimeAdded { get; set; }
|
|
|
|
[JsonPropertyName("offenses")]
|
|
public int Offenses { get; set; }
|
|
|
|
public DateTime AddedAt => DateTimeOffset.FromUnixTimeSeconds(TimeAdded).DateTime;
|
|
}
|
|
|
|
[JsonPropertyName("ok")]
|
|
public bool IsSpammer { get; set; }
|
|
|
|
[JsonPropertyName("description")]
|
|
public string Description { get; set; }
|
|
|
|
[JsonPropertyName("result")]
|
|
public ApiResult Result { get; set; }
|
|
} |