Skip to content

Commit

Permalink
Merge pull request #52 from RxTelegram/v7.8.0
Browse files Browse the repository at this point in the history
V7.8.0
  • Loading branch information
niklasweimann committed Aug 2, 2024
2 parents cf12873 + caf2453 commit 332ec65
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ namespace RxTelegram.Bot.Interface.BaseTypes.Requests.Chats;
/// </summary>
public class PinChatMessage : BaseRequest
{
/// <summary>
/// Unique identifier of the business connection on behalf of which the message will be pinned
/// </summary>
public string BusinessConnectionId { get; set; }

/// <summary>
/// Required
/// Identifier of a message to pin
Expand All @@ -23,4 +28,4 @@ public class PinChatMessage : BaseRequest
public bool DisableNotification { get; set; }

protected override IValidationResult Validate() => this.CreateValidation();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ namespace RxTelegram.Bot.Interface.BaseTypes.Requests.Chats;
/// </summary>
public class UnpinChatMessage : BaseRequest
{
/// <summary>
/// Unique identifier of the business connection on behalf of which the message will be pinned
/// </summary>
public string BusinessConnectionId { get; set; }

/// <summary>
/// Identifier of a message to unpin. If not specified, the most recent pinned message (by sending date) will be unpinned.
/// </summary>
Expand Down
5 changes: 5 additions & 0 deletions src/RxTelegram.Bot/Interface/BaseTypes/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,9 @@ public class User
/// Returned only in <see cref="ITelegramBot.GetMe"/>.
/// </summary>
public bool CanConnectToBusiness { get; set; }

/// <summary>
/// Optional. True, if the bot has a main Web App. Returned only in <see cref="ITelegramBot.GetMe"/>.
/// </summary>
public bool? HasMainWebApp { get; set; }
}
2 changes: 1 addition & 1 deletion src/RxTelegram.Bot/RxTelegram.Bot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<RepositoryUrl>https://github.com/RxTelegram/RxTelegram.Bot</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>Telegram;Bot;Api;Rx;Reactive;Observable;RxTelegram;RxTelegram.Bot</PackageTags>
<PackageVersion>7.7.0</PackageVersion>
<PackageVersion>7.8.0</PackageVersion>
<PackageIcon>icon.png</PackageIcon>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile>
Expand Down

0 comments on commit 332ec65

Please sign in to comment.