From f18285ac03c7834aa9f79f07dead0618086d2fd1 Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Thu, 11 Jul 2024 17:33:18 +0200 Subject: [PATCH 1/3] Less warnings --- src/Telegram.Bot/Extensions/FormatExtensions.cs | 2 ++ src/Telegram.Bot/Requests/Stickers/UploadStickerFileRequest.cs | 2 +- src/Telegram.Bot/Telegram.Bot.csproj | 1 + src/Telegram.Bot/TelegramBotClientExtensions.ApiMethods.cs | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Telegram.Bot/Extensions/FormatExtensions.cs b/src/Telegram.Bot/Extensions/FormatExtensions.cs index 83d2ec492..d0be483a1 100644 --- a/src/Telegram.Bot/Extensions/FormatExtensions.cs +++ b/src/Telegram.Bot/Extensions/FormatExtensions.cs @@ -4,6 +4,8 @@ namespace Telegram.Bot.Extensions; +#pragma warning disable MA0001, MA0076 + /// Helpers/Extensions for MarkdownV2 texts public static class Markdown { diff --git a/src/Telegram.Bot/Requests/Stickers/UploadStickerFileRequest.cs b/src/Telegram.Bot/Requests/Stickers/UploadStickerFileRequest.cs index 678cf7d86..252226cbc 100644 --- a/src/Telegram.Bot/Requests/Stickers/UploadStickerFileRequest.cs +++ b/src/Telegram.Bot/Requests/Stickers/UploadStickerFileRequest.cs @@ -1,6 +1,6 @@ namespace Telegram.Bot.Requests; -/// Use this method to upload a file with a sticker for later use in the CreateNewStickerSet, AddStickerToSet, or ReplaceStickerInSet methods (the file can be used multiple times).Returns: The uploaded on success. +/// Use this method to upload a file with a sticker for later use in the CreateNewStickerSet, AddStickerToSet, or ReplaceStickerInSet methods (the file can be used multiple times).Returns: The uploaded on success. public partial class UploadStickerFileRequest : FileRequestBase, IUserTargetable { /// User identifier of sticker file owner diff --git a/src/Telegram.Bot/Telegram.Bot.csproj b/src/Telegram.Bot/Telegram.Bot.csproj index b3373c87a..bcb710fe3 100644 --- a/src/Telegram.Bot/Telegram.Bot.csproj +++ b/src/Telegram.Bot/Telegram.Bot.csproj @@ -59,6 +59,7 @@ a new exception instance --> $(NoWarn);MA0046 $(NoWarn);MA0048;MA0051 + $(NoWarn);CS0419 diff --git a/src/Telegram.Bot/TelegramBotClientExtensions.ApiMethods.cs b/src/Telegram.Bot/TelegramBotClientExtensions.ApiMethods.cs index 2276ea50c..8f97a03d3 100644 --- a/src/Telegram.Bot/TelegramBotClientExtensions.ApiMethods.cs +++ b/src/Telegram.Bot/TelegramBotClientExtensions.ApiMethods.cs @@ -2610,7 +2610,7 @@ public static async Task GetCustomEmojiStickersAsync( CustomEmojiIds = customEmojiIds, }, cancellationToken).ConfigureAwait(false); - /// Use this method to upload a file with a sticker for later use in the CreateNewStickerSet, AddStickerToSet, or ReplaceStickerInSet methods (the file can be used multiple times). + /// Use this method to upload a file with a sticker for later use in the CreateNewStickerSet, AddStickerToSet, or ReplaceStickerInSet methods (the file can be used multiple times). /// An instance of /// User identifier of sticker file owner /// A file with the sticker in .WEBP, .PNG, .TGS, or .WEBM format. See https://core.telegram.org/stickers for technical requirements. More information on Sending Files » From 9ee3adc8f293ab661061da13095aa04a98d895f9 Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Thu, 11 Jul 2024 18:01:03 +0200 Subject: [PATCH 2/3] Bump dependencies --- .../EnumSerializer.Generator.csproj | 6 +++--- src/Telegram.Bot/Telegram.Bot.csproj | 6 +++--- .../Telegram.Bot.Tests.Integ.csproj | 10 +++++----- .../Telegram.Bot.Tests.Unit.csproj | 8 ++++---- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/EnumSerializer.Generator/EnumSerializer.Generator.csproj b/src/EnumSerializer.Generator/EnumSerializer.Generator.csproj index d4d409290..c40dc8b4f 100644 --- a/src/EnumSerializer.Generator/EnumSerializer.Generator.csproj +++ b/src/EnumSerializer.Generator/EnumSerializer.Generator.csproj @@ -14,10 +14,10 @@ - + - - + + diff --git a/src/Telegram.Bot/Telegram.Bot.csproj b/src/Telegram.Bot/Telegram.Bot.csproj index bcb710fe3..0b22d57a2 100644 --- a/src/Telegram.Bot/Telegram.Bot.csproj +++ b/src/Telegram.Bot/Telegram.Bot.csproj @@ -78,7 +78,7 @@ - + @@ -95,9 +95,9 @@ - + - + diff --git a/test/Telegram.Bot.Tests.Integ/Telegram.Bot.Tests.Integ.csproj b/test/Telegram.Bot.Tests.Integ/Telegram.Bot.Tests.Integ.csproj index 35477cad4..ee09800fc 100644 --- a/test/Telegram.Bot.Tests.Integ/Telegram.Bot.Tests.Integ.csproj +++ b/test/Telegram.Bot.Tests.Integ/Telegram.Bot.Tests.Integ.csproj @@ -11,13 +11,13 @@ - + - - - - + + + + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/test/Telegram.Bot.Tests.Unit/Telegram.Bot.Tests.Unit.csproj b/test/Telegram.Bot.Tests.Unit/Telegram.Bot.Tests.Unit.csproj index cd53fb214..726df64b8 100644 --- a/test/Telegram.Bot.Tests.Unit/Telegram.Bot.Tests.Unit.csproj +++ b/test/Telegram.Bot.Tests.Unit/Telegram.Bot.Tests.Unit.csproj @@ -6,10 +6,10 @@ false - - - - + + + + From c60bc10001a24abc60e71fd7b7dc9e991982c150 Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Thu, 11 Jul 2024 18:02:05 +0200 Subject: [PATCH 3/3] Releasing 21.6.1 --- .azure-pipelines/variables.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/variables.yml b/.azure-pipelines/variables.yml index 43f591a1e..dd6628f4e 100644 --- a/.azure-pipelines/variables.yml +++ b/.azure-pipelines/variables.yml @@ -1,7 +1,7 @@ -variables: +variables: - group: Integration Tests Variables - name: versionPrefix - value: 21.6.0 + value: 21.6.1 - name: versionSuffix value: '' - name: ciVersionSuffix