Skip to content

Commit ccf8221

Browse files
committed
Fix StarAmount fields (wrong names in doc)
1 parent 2f6d117 commit ccf8221

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Telegram.Bot/Types/StarAmount.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ public partial class StarAmount
66
{
77
/// <summary>Integer amount of Telegram Stars, rounded to 0; can be negative</summary>
88
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
9-
public int Amount { get; set; }
9+
[JsonPropertyName("star_count")]
10+
public int StarCount { get; set; }
1011

1112
/// <summary><em>Optional</em>. The number of 1/1000000000 shares of Telegram Stars; from -999999999 to 999999999; can be negative if and only if <see cref="Amount">Amount</see> is non-positive</summary>
12-
[JsonPropertyName("nanostar_amount")]
13-
public int? NanostarAmount { get; set; }
13+
[JsonPropertyName("nanostar_count")]
14+
public int? NanostarCount { get; set; }
1415
}

0 commit comments

Comments
 (0)