|
| 1 | +// GENERATED FILE - DO NOT MODIFY MANUALLY |
| 2 | +namespace Telegram.Bot.Requests; |
| 3 | + |
| 4 | +/// <summary>Returns the gifts owned by a chat.<para>Returns: <see cref="OwnedGifts"/> on success.</para></summary> |
| 5 | +[EditorBrowsable(EditorBrowsableState.Never)] |
| 6 | +public partial class GetChatGiftsRequest() : RequestBase<OwnedGifts>("getChatGifts"), IChatTargetable |
| 7 | +{ |
| 8 | + /// <summary>Unique identifier for the target chat or username of the target channel (in the format <c>@channelusername</c>)</summary> |
| 9 | + [JsonPropertyName("chat_id")] |
| 10 | + [JsonIgnore(Condition = JsonIgnoreCondition.Never)] |
| 11 | + public required ChatId ChatId { get; set; } |
| 12 | + |
| 13 | + /// <summary>Pass <see langword="true"/> to exclude gifts that aren't saved to the chat's profile page. Always <see langword="true"/>, unless the bot has the <em>CanPostMessages</em> administrator right in the channel.</summary> |
| 14 | + [JsonPropertyName("exclude_unsaved")] |
| 15 | + public bool ExcludeUnsaved { get; set; } |
| 16 | + |
| 17 | + /// <summary>Pass <see langword="true"/> to exclude gifts that are saved to the chat's profile page. Always <see langword="false"/>, unless the bot has the <em>CanPostMessages</em> administrator right in the channel.</summary> |
| 18 | + [JsonPropertyName("exclude_saved")] |
| 19 | + public bool ExcludeSaved { get; set; } |
| 20 | + |
| 21 | + /// <summary>Pass <see langword="true"/> to exclude gifts that can be purchased an unlimited number of times</summary> |
| 22 | + [JsonPropertyName("exclude_unlimited")] |
| 23 | + public bool ExcludeUnlimited { get; set; } |
| 24 | + |
| 25 | + /// <summary>Pass <see langword="true"/> to exclude gifts that can be purchased a limited number of times and can be upgraded to unique</summary> |
| 26 | + [JsonPropertyName("exclude_limited_upgradable")] |
| 27 | + public bool ExcludeLimitedUpgradable { get; set; } |
| 28 | + |
| 29 | + /// <summary>Pass <see langword="true"/> to exclude gifts that can be purchased a limited number of times and can't be upgraded to unique</summary> |
| 30 | + [JsonPropertyName("exclude_limited_non_upgradable")] |
| 31 | + public bool ExcludeLimitedNonUpgradable { get; set; } |
| 32 | + |
| 33 | + /// <summary>Pass <see langword="true"/> to exclude gifts that were assigned from the TON blockchain and can't be resold or transferred in Telegram</summary> |
| 34 | + [JsonPropertyName("exclude_from_blockchain")] |
| 35 | + public bool ExcludeFromBlockchain { get; set; } |
| 36 | + |
| 37 | + /// <summary>Pass <see langword="true"/> to exclude unique gifts</summary> |
| 38 | + [JsonPropertyName("exclude_unique")] |
| 39 | + public bool ExcludeUnique { get; set; } |
| 40 | + |
| 41 | + /// <summary>Pass <see langword="true"/> to sort results by gift price instead of send date. Sorting is applied before pagination.</summary> |
| 42 | + [JsonPropertyName("sort_by_price")] |
| 43 | + public bool SortByPrice { get; set; } |
| 44 | + |
| 45 | + /// <summary>Offset of the first entry to return as received from the previous request; use an empty string to get the first chunk of results</summary> |
| 46 | + public string? Offset { get; set; } |
| 47 | + |
| 48 | + /// <summary>The maximum number of gifts to be returned; 1-100. Defaults to 100</summary> |
| 49 | + public int? Limit { get; set; } |
| 50 | +} |
0 commit comments