Как создать классы из большого API автоматически в C#

Есть API телеграмма https://core.telegram.org/bots/api и там есть вкладка "Available types" Нужно достать все типы в формате:

public class User
{
    public long id { get; set; }
    public bool is_bot { get; set; }
    public string? first_name { get; set; }
    public string? last_name { get; set; }
    public string? username { get; set; }
    public string? language_code { get; set; }
    public bool is_premium { get; set; }
    public bool added_to_attachment_menu { get; set; }
    public bool can_join_groups { get; set; }
    public bool can_read_all_group_messages { get; set; }
    public bool supports_inline_queries { get; set; }
}

Как это сделать автоматически или намного быстрее (типов там очень много)


Ответы (0 шт):