You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://www.nuget.org/packages/Telegram.BotAPI/)
5
-
[](https://core.telegram.org/bots/api#august-14-2024)
5
+
[](https://core.telegram.org/bots/api#september-6-2024)
6
6
7
-
**Telegram.BotAPI** is one of the most complete libraries available to interact with the Telegram Bot API in your .NET projects. It contains all the methods and types available in the Bot API 7.9 released on August 14, 2024.
7
+
**Telegram.BotAPI** is one of the most complete libraries available to interact with the Telegram Bot API in your .NET projects. It contains all the methods and types available in the Bot API 7.10 released on September 6, 2024.
Copy file name to clipboardExpand all lines: src/examples/readme.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Telegram.BotAPI NET Examples
2
2
3
3
[](https://www.nuget.org/packages/Telegram.BotAPI/)
4
-
[](https://core.telegram.org/bots/api#august-14-2024)
4
+
[](https://core.telegram.org/bots/api#september-6-2024)
Copy file name to clipboardExpand all lines: src/library/Telegram.BotAPI/AvailableMethods/Args/SendPaidMediaArgs.cs
+9-3
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ public class SendPaidMediaArgs : AttachedFilesArgsBase
15
15
/// Initializes a new instance of the <see cref="SendPaidMediaArgs"/> class.
16
16
/// </summary>
17
17
/// <param name="chatId">Unique identifier for the target chat or username of the target channel (in the format <em>@channelusername</em>). If the chat is a channel, all Telegram Star proceeds from this media will be credited to the chat's balance. Otherwise, they will be credited to the bot's balance.</param>
18
-
/// <param name="starCount">The number of Telegram Stars that must be paid to buy access to the media</param>
18
+
/// <param name="starCount">The number of Telegram Stars that must be paid to buy access to the media; 1-2500</param>
19
19
/// <param name="media">A JSON-serialized array describing the media to be sent; up to 10 items</param>
@@ -28,7 +28,7 @@ public SendPaidMediaArgs(long chatId, int starCount, IEnumerable<InputPaidMedia>
28
28
/// Initializes a new instance of the <see cref="SendPaidMediaArgs"/> class.
29
29
/// </summary>
30
30
/// <param name="chatId">Unique identifier for the target chat or username of the target channel (in the format <em>@channelusername</em>). If the chat is a channel, all Telegram Star proceeds from this media will be credited to the chat's balance. Otherwise, they will be credited to the bot's balance.</param>
31
-
/// <param name="starCount">The number of Telegram Stars that must be paid to buy access to the media</param>
31
+
/// <param name="starCount">The number of Telegram Stars that must be paid to buy access to the media; 1-2500</param>
32
32
/// <param name="media">A JSON-serialized array describing the media to be sent; up to 10 items</param>
/// <param name="chatId">Unique identifier for the target chat or username of the target channel (in the format <em>@channelusername</em>). If the chat is a channel, all Telegram Star proceeds from this media will be credited to the chat's balance. Otherwise, they will be credited to the bot's balance.</param>
49
-
/// <param name="starCount">The number of Telegram Stars that must be paid to buy access to the media</param>
49
+
/// <param name="starCount">The number of Telegram Stars that must be paid to buy access to the media; 1-2500</param>
50
50
/// <param name="media">A JSON-serialized array describing the media to be sent; up to 10 items</param>
51
51
/// <param name="businessConnectionId">Unique identifier of the business connection on behalf of which the message will be sent</param>
52
+
/// <param name="payload">Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user, use it for your internal processes.</param>
52
53
/// <param name="caption">Media caption, 0-1024 characters after entities parsing</param>
53
54
/// <param name="parseMode">Mode for parsing entities in the media caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.</param>
54
55
/// <param name="captionEntities">A JSON-serialized list of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em></param>
@@ -60,17 +61,18 @@ public static Task<Message> SendPaidMediaAsync(this ITelegramBotClient client, S
60
61
/// <exception cref="ArgumentNullException">Thrown if <paramref name="client"/> is <c>null</c>.</exception>
61
62
/// <exception cref="BotRequestException">Thrown if the request to the Telegram Bot API fails.</exception>
/// <param name="chatId">Unique identifier for the target chat or username of the target channel (in the format <em>@channelusername</em>). If the chat is a channel, all Telegram Star proceeds from this media will be credited to the chat's balance. Otherwise, they will be credited to the bot's balance.</param>
71
-
/// <param name="starCount">The number of Telegram Stars that must be paid to buy access to the media</param>
72
+
/// <param name="starCount">The number of Telegram Stars that must be paid to buy access to the media; 1-2500</param>
72
73
/// <param name="media">A JSON-serialized array describing the media to be sent; up to 10 items</param>
73
74
/// <param name="businessConnectionId">Unique identifier of the business connection on behalf of which the message will be sent</param>
75
+
/// <param name="payload">Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user, use it for your internal processes.</param>
74
76
/// <param name="caption">Media caption, 0-1024 characters after entities parsing</param>
75
77
/// <param name="parseMode">Mode for parsing entities in the media caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.</param>
76
78
/// <param name="captionEntities">A JSON-serialized list of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em></param>
@@ -83,7 +85,7 @@ public static Message SendPaidMedia(this ITelegramBotClient client, long chatId,
83
85
/// <exception cref="ArgumentNullException">Thrown if <paramref name="client"/> is <c>null</c>.</exception>
84
86
/// <exception cref="BotRequestException">Thrown if the request to the Telegram Bot API fails.</exception>
/// <param name="chatId">Unique identifier for the target chat or username of the target channel (in the format <em>@channelusername</em>). If the chat is a channel, all Telegram Star proceeds from this media will be credited to the chat's balance. Otherwise, they will be credited to the bot's balance.</param>
144
-
/// <param name="starCount">The number of Telegram Stars that must be paid to buy access to the media</param>
150
+
/// <param name="starCount">The number of Telegram Stars that must be paid to buy access to the media; 1-2500</param>
145
151
/// <param name="media">A JSON-serialized array describing the media to be sent; up to 10 items</param>
146
152
/// <param name="businessConnectionId">Unique identifier of the business connection on behalf of which the message will be sent</param>
153
+
/// <param name="payload">Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user, use it for your internal processes.</param>
147
154
/// <param name="caption">Media caption, 0-1024 characters after entities parsing</param>
148
155
/// <param name="parseMode">Mode for parsing entities in the media caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.</param>
149
156
/// <param name="captionEntities">A JSON-serialized list of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em></param>
@@ -155,17 +162,18 @@ public static Task<Message> SendPaidMediaAsync(this ITelegramBotClient client, l
155
162
/// <exception cref="ArgumentNullException">Thrown if <paramref name="client"/> is <c>null</c>.</exception>
156
163
/// <exception cref="BotRequestException">Thrown if the request to the Telegram Bot API fails.</exception>
/// <param name="chatId">Unique identifier for the target chat or username of the target channel (in the format <em>@channelusername</em>). If the chat is a channel, all Telegram Star proceeds from this media will be credited to the chat's balance. Otherwise, they will be credited to the bot's balance.</param>
166
-
/// <param name="starCount">The number of Telegram Stars that must be paid to buy access to the media</param>
173
+
/// <param name="starCount">The number of Telegram Stars that must be paid to buy access to the media; 1-2500</param>
167
174
/// <param name="media">A JSON-serialized array describing the media to be sent; up to 10 items</param>
168
175
/// <param name="businessConnectionId">Unique identifier of the business connection on behalf of which the message will be sent</param>
176
+
/// <param name="payload">Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user, use it for your internal processes.</param>
169
177
/// <param name="caption">Media caption, 0-1024 characters after entities parsing</param>
170
178
/// <param name="parseMode">Mode for parsing entities in the media caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.</param>
171
179
/// <param name="captionEntities">A JSON-serialized list of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em></param>
@@ -178,7 +186,7 @@ public static Message SendPaidMedia(this ITelegramBotClient client, string chatI
178
186
/// <exception cref="ArgumentNullException">Thrown if <paramref name="client"/> is <c>null</c>.</exception>
179
187
/// <exception cref="BotRequestException">Thrown if the request to the Telegram Bot API fails.</exception>
Copy file name to clipboardExpand all lines: src/library/Telegram.BotAPI/AvailableTypes/ChatBoostSource/ChatBoostSourceGiveaway.cs
+8-2
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
namespaceTelegram.BotAPI.AvailableTypes;
6
6
7
7
/// <summary>
8
-
/// The boost was obtained by the creation of a Telegram Premium giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.
8
+
/// The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription for Telegram Premium giveaways and <em>prize_star_count</em> / 500 times for one year for Telegram Star giveaways.
0 commit comments