From 5636b2b629a955d5f0c0dc309e04f3e2ead997bd Mon Sep 17 00:00:00 2001 From: Niklas Weimann Date: Sat, 3 Aug 2024 00:15:32 +0200 Subject: [PATCH 1/2] Add support for v7.8 --- .../Interface/BaseTypes/Requests/Chats/PinChatMessage.cs | 7 ++++++- .../Interface/BaseTypes/Requests/Chats/UnpinChatMessage.cs | 5 +++++ src/RxTelegram.Bot/Interface/BaseTypes/User.cs | 5 +++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/RxTelegram.Bot/Interface/BaseTypes/Requests/Chats/PinChatMessage.cs b/src/RxTelegram.Bot/Interface/BaseTypes/Requests/Chats/PinChatMessage.cs index a0c86a1..c90c202 100644 --- a/src/RxTelegram.Bot/Interface/BaseTypes/Requests/Chats/PinChatMessage.cs +++ b/src/RxTelegram.Bot/Interface/BaseTypes/Requests/Chats/PinChatMessage.cs @@ -10,6 +10,11 @@ namespace RxTelegram.Bot.Interface.BaseTypes.Requests.Chats; /// public class PinChatMessage : BaseRequest { + /// + /// Unique identifier of the business connection on behalf of which the message will be pinned + /// + public string BusinessConnectionId { get; set; } + /// /// Required /// Identifier of a message to pin @@ -23,4 +28,4 @@ public class PinChatMessage : BaseRequest public bool DisableNotification { get; set; } protected override IValidationResult Validate() => this.CreateValidation(); -} \ No newline at end of file +} diff --git a/src/RxTelegram.Bot/Interface/BaseTypes/Requests/Chats/UnpinChatMessage.cs b/src/RxTelegram.Bot/Interface/BaseTypes/Requests/Chats/UnpinChatMessage.cs index 157a85d..d1672d4 100644 --- a/src/RxTelegram.Bot/Interface/BaseTypes/Requests/Chats/UnpinChatMessage.cs +++ b/src/RxTelegram.Bot/Interface/BaseTypes/Requests/Chats/UnpinChatMessage.cs @@ -10,6 +10,11 @@ namespace RxTelegram.Bot.Interface.BaseTypes.Requests.Chats; /// public class UnpinChatMessage : BaseRequest { + /// + /// Unique identifier of the business connection on behalf of which the message will be pinned + /// + public string BusinessConnectionId { get; set; } + /// /// Identifier of a message to unpin. If not specified, the most recent pinned message (by sending date) will be unpinned. /// diff --git a/src/RxTelegram.Bot/Interface/BaseTypes/User.cs b/src/RxTelegram.Bot/Interface/BaseTypes/User.cs index 52d74b5..6637dee 100644 --- a/src/RxTelegram.Bot/Interface/BaseTypes/User.cs +++ b/src/RxTelegram.Bot/Interface/BaseTypes/User.cs @@ -65,4 +65,9 @@ public class User /// Returned only in . /// public bool CanConnectToBusiness { get; set; } + + /// + /// Optional. True, if the bot has a main Web App. Returned only in . + /// + public bool? HasMainWebApp { get; set; } } From caf24535d0679fbde85973f67d887a8fa78d5adb Mon Sep 17 00:00:00 2001 From: Niklas Weimann Date: Sat, 3 Aug 2024 00:16:10 +0200 Subject: [PATCH 2/2] Update versions --- README.md | 2 +- src/RxTelegram.Bot/RxTelegram.Bot.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8ca98bb..9b7d7b2 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=RxTelegram_RxTelegram.Bot&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=RxTelegram_RxTelegram.Bot) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=RxTelegram_RxTelegram.Bot&metric=coverage)](https://sonarcloud.io/summary/new_code?id=RxTelegram_RxTelegram.Bot) -RxTelegram.Bot supports Telegram Bot API 7.6 (as at July 1, 2024). +RxTelegram.Bot supports Telegram Bot API 7.8 (as at July 31, 2024). This is a reactive designed .NET Library for the Telegram Bot API. It works with the official [Reactive Extentions](https://github.com/dotnet/reactive). diff --git a/src/RxTelegram.Bot/RxTelegram.Bot.csproj b/src/RxTelegram.Bot/RxTelegram.Bot.csproj index c39a6e8..0899502 100644 --- a/src/RxTelegram.Bot/RxTelegram.Bot.csproj +++ b/src/RxTelegram.Bot/RxTelegram.Bot.csproj @@ -10,7 +10,7 @@ https://github.com/RxTelegram/RxTelegram.Bot git Telegram;Bot;Api;Rx;Reactive;Observable;RxTelegram;RxTelegram.Bot - 7.7.0 + 7.8.0 icon.png true bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml