TelegramBot/TelegramBot/Requests/Available methods/GetMyDefaultAdministratorRightsRequest.cs
2026-08-03 22:52:44 +02:00

31 lines
1.0 KiB
C#

using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using Telegram.Bot.Types;
// ReSharper disable once CheckNamespace
namespace Telegram.Bot.Requests {
/// <summary>
/// Use this method to get the current default administrator rights of the bot.
/// Returns <see cref="ChatAdministratorRights"/> on success.
/// </summary>
[JsonObject(MemberSerialization.OptIn, NamingStrategyType = typeof(SnakeCaseNamingStrategy))]
public class GetMyDefaultAdministratorRightsRequest : RequestBase<ChatAdministratorRights> {
/// <summary>
/// Pass <c>true</c> to get default administrator rights of the bot in channels. Otherwise, default administrator
/// rights of the bot for groups and supergroups will be returned.
/// </summary>
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
public bool? ForChannels {
get; set;
}
/// <summary>
///
/// </summary>
public GetMyDefaultAdministratorRightsRequest()
: base("getMyDefaultAdministratorRights") {
}
}
}