Skip to content

Commit 76c173d

Browse files
authored
Merge pull request #1459 from TelegramBots/develop
Fix type for Cover properties
2 parents fbc0728 + 7cb2734 commit 76c173d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.azure-pipelines/variables.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
variables:
22
- group: Integration Tests Variables
33
- name: versionPrefix
4-
value: 22.4.1
4+
value: 22.4.2
55
- name: versionSuffix
66
value: ''
77
- name: ciVersionSuffix

src/Telegram.Bot/Requests/Stickers/SendGiftRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public partial class SendGiftRequest() : RequestBase<bool>("sendGift")
1818
/// <summary>Pass <see langword="true"/> to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the receiver</summary>
1919
public bool PayForUpgrade { get; set; }
2020

21-
/// <summary>Text that will be shown along with the gift; 0-255 characters</summary>
21+
/// <summary>Text that will be shown along with the gift; 0-128 characters</summary>
2222
public string? Text { get; set; }
2323

2424
/// <summary>Mode for parsing entities in the text. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details. Entities other than <see cref="MessageEntityType.Bold">Bold</see>, <see cref="MessageEntityType.Italic">Italic</see>, <see cref="MessageEntityType.Underline">Underline</see>, <see cref="MessageEntityType.Strikethrough">Strikethrough</see>, <see cref="MessageEntityType.Spoiler">Spoiler</see>, and <see cref="MessageEntityType.CustomEmoji">CustomEmoji</see> are ignored.</summary>

src/Telegram.Bot/TelegramBotClientExtensions.ApiMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4398,7 +4398,7 @@ public static Task<GiftList> GetAvailableGiftsAsync(
43984398
/// <param name="botClient">An instance of <see cref="ITelegramBotClient"/></param>
43994399
/// <param name="chatId">Unique identifier of the target user, chat or username of the channel (in the format <c>@channelusername</c>) that will receive the gift.</param>
44004400
/// <param name="giftId">Identifier of the gift</param>
4401-
/// <param name="text">Text that will be shown along with the gift; 0-255 characters</param>
4401+
/// <param name="text">Text that will be shown along with the gift; 0-128 characters</param>
44024402
/// <param name="textParseMode">Mode for parsing entities in the text. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details. Entities other than <see cref="MessageEntityType.Bold">Bold</see>, <see cref="MessageEntityType.Italic">Italic</see>, <see cref="MessageEntityType.Underline">Underline</see>, <see cref="MessageEntityType.Strikethrough">Strikethrough</see>, <see cref="MessageEntityType.Spoiler">Spoiler</see>, and <see cref="MessageEntityType.CustomEmoji">CustomEmoji</see> are ignored.</param>
44034403
/// <param name="textEntities">A list of special entities that appear in the gift text. It can be specified instead of <paramref name="textParseMode"/>. Entities other than <see cref="MessageEntityType.Bold">Bold</see>, <see cref="MessageEntityType.Italic">Italic</see>, <see cref="MessageEntityType.Underline">Underline</see>, <see cref="MessageEntityType.Strikethrough">Strikethrough</see>, <see cref="MessageEntityType.Spoiler">Spoiler</see>, and <see cref="MessageEntityType.CustomEmoji">CustomEmoji</see> are ignored.</param>
44044404
/// <param name="payForUpgrade">Pass <see langword="true"/> to pay for the gift upgrade from the bot's balance, thereby making the upgrade free for the receiver</param>

src/Telegram.Bot/Types/InputFiles/InputMedia.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public partial class InputMediaVideo : InputMedia, IInputMediaThumb, IAlbumInput
6868
public InputFile? Thumbnail { get; set; }
6969

7070
/// <summary><em>Optional</em>. Cover for the video in the message. Pass a FileId to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or use <see cref="InputFileStream(Stream, string?)"/> with a specific filename. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a></summary>
71-
public string? Cover { get; set; }
71+
public InputFile? Cover { get; set; }
7272

7373
/// <summary><em>Optional</em>. Start timestamp for the video in the message</summary>
7474
public int? StartTimestamp { get; set; }

src/Telegram.Bot/Types/InputPaidMedia.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public partial class InputPaidMediaVideo : InputPaidMedia, IInputMediaThumb
3434
public InputFile? Thumbnail { get; set; }
3535

3636
/// <summary><em>Optional</em>. Cover for the video in the message. Pass a FileId to send a file that exists on the Telegram servers (recommended), pass an HTTP URL for Telegram to get a file from the Internet, or use <see cref="InputFileStream(Stream, string?)"/> with a specific filename. <a href="https://core.telegram.org/bots/api#sending-files">More information on Sending Files »</a></summary>
37-
public string? Cover { get; set; }
37+
public InputFile? Cover { get; set; }
3838

3939
/// <summary><em>Optional</em>. Start timestamp for the video in the message</summary>
4040
public int? StartTimestamp { get; set; }

0 commit comments

Comments
 (0)