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/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; } } 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