Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased] (1.8.59)
### Changed
- Update to [TDLib v1.8.59](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.59).

## [1.8.58] - 2025-12-07
### Changed
- Update to [TDLib v1.8.58](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.58).
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SPDX-License-Identifier: MIT

<Project>
<PropertyGroup Label="Packaging">
<Version>1.8.58</Version>
<Version>1.8.59</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Get-TlFiles.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

param(
[string] $CommitHash = '282f96ca66421c348ed75aaca84471b3e39e64dd',
[string] $CommitHash = '89e7366783e13d63085878ba407da83107ccd401',
[string] $TdApiUrl = "https://github.com/tdlib/td/raw/$CommitHash/td/generate/scheme/td_api.tl",

[string] $SourceRoot = "$PSScriptRoot/..",
Expand Down
58 changes: 58 additions & 0 deletions TdLib.Api/Functions/AddLoginPasskey.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
using System;
using System.Threading.Tasks;
using Newtonsoft.Json;

// REUSE-IgnoreStart
namespace TdLib
{
/// <summary>
/// Autogenerated TDLib APIs
/// </summary>
public static partial class TdApi
{
/// <summary>
/// Adds a passkey allowed to be used for the login by the current user and returns the added passkey. Call getPasskeyParameters to get parameters for creating of the passkey
/// </summary>
public class AddLoginPasskey : Function<Passkey>
{
/// <summary>
/// Data type for serialization
/// </summary>
[JsonProperty("@type")]
public override string DataType { get; set; } = "addLoginPasskey";

/// <summary>
/// Extra data attached to the function
/// </summary>
[JsonProperty("@extra")]
public override string Extra { get; set; }

/// <summary>
/// JSON-encoded client data
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("client_data")]
public string ClientData { get; set; }

/// <summary>
/// Passkey attestation object
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("attestation_object")]
public byte[] AttestationObject { get; set; }
}

/// <summary>
/// Adds a passkey allowed to be used for the login by the current user and returns the added passkey. Call getPasskeyParameters to get parameters for creating of the passkey
/// </summary>
public static Task<Passkey> AddLoginPasskeyAsync(
this Client client, string clientData = default, byte[] attestationObject = default)
{
return client.ExecuteAsync(new AddLoginPasskey
{
ClientData = clientData, AttestationObject = attestationObject
});
}
}
}
// REUSE-IgnoreEnd
4 changes: 2 additions & 2 deletions TdLib.Api/Functions/CanSendMessageToUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace TdLib
public static partial class TdApi
{
/// <summary>
/// Check whether the current user can message another user or try to create a chat with them
/// Checks whether the current user can message another user or try to create a chat with them
/// </summary>
public class CanSendMessageToUser : Function<CanSendMessageToUserResult>
{
Expand Down Expand Up @@ -43,7 +43,7 @@ public class CanSendMessageToUser : Function<CanSendMessageToUserResult>
}

/// <summary>
/// Check whether the current user can message another user or try to create a chat with them
/// Checks whether the current user can message another user or try to create a chat with them
/// </summary>
public static Task<CanSendMessageToUserResult> CanSendMessageToUserAsync(
this Client client, long userId = default, bool onlyLocal = default)
Expand Down
83 changes: 83 additions & 0 deletions TdLib.Api/Functions/CheckAuthenticationPasskey.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
using System;
using System.Threading.Tasks;
using Newtonsoft.Json;

// REUSE-IgnoreStart
namespace TdLib
{
/// <summary>
/// Autogenerated TDLib APIs
/// </summary>
public static partial class TdApi
{
/// <summary>
/// Checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is
/// authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is
/// authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
/// </summary>
public class CheckAuthenticationPasskey : Function<Ok>
{
/// <summary>
/// Data type for serialization
/// </summary>
[JsonProperty("@type")]
public override string DataType { get; set; } = "checkAuthenticationPasskey";

/// <summary>
/// Extra data attached to the function
/// </summary>
[JsonProperty("@extra")]
public override string Extra { get; set; }

/// <summary>
/// Base64url-encoded identifier of the credential
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("credential_id")]
public string CredentialId { get; set; }

/// <summary>
/// JSON-encoded client data
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("client_data")]
public string ClientData { get; set; }

/// <summary>
/// Authenticator data of the application that created the credential
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("authenticator_data")]
public byte[] AuthenticatorData { get; set; }

/// <summary>
/// Cryptographic signature of the credential
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("signature")]
public byte[] Signature { get; set; }

/// <summary>
/// User handle of the passkey
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("user_handle")]
public byte[] UserHandle { get; set; }
}

/// <summary>
/// Checks a passkey to log in to the corresponding account. Call getAuthenticationPasskeyParameters to get parameters for the passkey. Works only when the current authorization state is
/// authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is
/// authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
/// </summary>
public static Task<Ok> CheckAuthenticationPasskeyAsync(
this Client client, string credentialId = default, string clientData = default, byte[] authenticatorData = default, byte[] signature = default, byte[] userHandle = default)
{
return client.ExecuteAsync(new CheckAuthenticationPasskey
{
CredentialId = credentialId, ClientData = clientData, AuthenticatorData = authenticatorData, Signature = signature, UserHandle = userHandle
});
}
}
}
// REUSE-IgnoreEnd
4 changes: 2 additions & 2 deletions TdLib.Api/Functions/CheckPhoneNumberCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace TdLib
public static partial class TdApi
{
/// <summary>
/// Check the authentication code and completes the request for which the code was sent if appropriate
/// Checks the authentication code and completes the request for which the code was sent if appropriate
/// </summary>
public class CheckPhoneNumberCode : Function<Ok>
{
Expand All @@ -36,7 +36,7 @@ public class CheckPhoneNumberCode : Function<Ok>
}

/// <summary>
/// Check the authentication code and completes the request for which the code was sent if appropriate
/// Checks the authentication code and completes the request for which the code was sent if appropriate
/// </summary>
public static Task<Ok> CheckPhoneNumberCodeAsync(
this Client client, string code = default)
Expand Down
4 changes: 2 additions & 2 deletions TdLib.Api/Functions/CheckPremiumGiftCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace TdLib
public static partial class TdApi
{
/// <summary>
/// Return information about a Telegram Premium gift code
/// Returns information about a Telegram Premium gift code
/// </summary>
public class CheckPremiumGiftCode : Function<PremiumGiftCodeInfo>
{
Expand All @@ -36,7 +36,7 @@ public class CheckPremiumGiftCode : Function<PremiumGiftCodeInfo>
}

/// <summary>
/// Return information about a Telegram Premium gift code
/// Returns information about a Telegram Premium gift code
/// </summary>
public static Task<PremiumGiftCodeInfo> CheckPremiumGiftCodeAsync(
this Client client, string code = default)
Expand Down
4 changes: 2 additions & 2 deletions TdLib.Api/Functions/DeleteBotMediaPreviews.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace TdLib
public static partial class TdApi
{
/// <summary>
/// Delete media previews from the list of media previews of a bot
/// Deletes media previews from the list of media previews of a bot
/// </summary>
public class DeleteBotMediaPreviews : Function<Ok>
{
Expand Down Expand Up @@ -49,7 +49,7 @@ public class DeleteBotMediaPreviews : Function<Ok>
}

/// <summary>
/// Delete media previews from the list of media previews of a bot
/// Deletes media previews from the list of media previews of a bot
/// </summary>
public static Task<Ok> DeleteBotMediaPreviewsAsync(
this Client client, long botUserId = default, string languageCode = default, int[] fileIds = default)
Expand Down
46 changes: 46 additions & 0 deletions TdLib.Api/Functions/GetAuthenticationPasskeyParameters.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
using System;
using System.Threading.Tasks;
using Newtonsoft.Json;

// REUSE-IgnoreStart
namespace TdLib
{
/// <summary>
/// Autogenerated TDLib APIs
/// </summary>
public static partial class TdApi
{
/// <summary>
/// Returns parameters for authentication using a passkey as JSON-serialized string
/// </summary>
public class GetAuthenticationPasskeyParameters : Function<Text>
{
/// <summary>
/// Data type for serialization
/// </summary>
[JsonProperty("@type")]
public override string DataType { get; set; } = "getAuthenticationPasskeyParameters";

/// <summary>
/// Extra data attached to the function
/// </summary>
[JsonProperty("@extra")]
public override string Extra { get; set; }


}

/// <summary>
/// Returns parameters for authentication using a passkey as JSON-serialized string
/// </summary>
public static Task<Text> GetAuthenticationPasskeyParametersAsync(
this Client client)
{
return client.ExecuteAsync(new GetAuthenticationPasskeyParameters
{

});
}
}
}
// REUSE-IgnoreEnd
51 changes: 51 additions & 0 deletions TdLib.Api/Functions/GetGiftUpgradeVariants.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
using System;
using System.Threading.Tasks;
using Newtonsoft.Json;

// REUSE-IgnoreStart
namespace TdLib
{
/// <summary>
/// Autogenerated TDLib APIs
/// </summary>
public static partial class TdApi
{
/// <summary>
/// Returns all possible variants of upgraded gifts for a regular gift
/// </summary>
public class GetGiftUpgradeVariants : Function<GiftUpgradeVariants>
{
/// <summary>
/// Data type for serialization
/// </summary>
[JsonProperty("@type")]
public override string DataType { get; set; } = "getGiftUpgradeVariants";

/// <summary>
/// Extra data attached to the function
/// </summary>
[JsonProperty("@extra")]
public override string Extra { get; set; }

/// <summary>
/// Identifier of the gift
/// </summary>
[JsonConverter(typeof(Converter.Int64))]
[JsonProperty("gift_id")]
public long GiftId { get; set; }
}

/// <summary>
/// Returns all possible variants of upgraded gifts for a regular gift
/// </summary>
public static Task<GiftUpgradeVariants> GetGiftUpgradeVariantsAsync(
this Client client, long giftId = default)
{
return client.ExecuteAsync(new GetGiftUpgradeVariants
{
GiftId = giftId
});
}
}
}
// REUSE-IgnoreEnd
4 changes: 2 additions & 2 deletions TdLib.Api/Functions/GetKeywordEmojis.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace TdLib
public static partial class TdApi
{
/// <summary>
/// Return emojis matching the keyword. Supported only if the file database is enabled. Order of results is unspecified
/// Returns emojis matching the keyword. Supported only if the file database is enabled. Order of results is unspecified
/// </summary>
public class GetKeywordEmojis : Function<Emojis>
{
Expand Down Expand Up @@ -42,7 +42,7 @@ public class GetKeywordEmojis : Function<Emojis>
}

/// <summary>
/// Return emojis matching the keyword. Supported only if the file database is enabled. Order of results is unspecified
/// Returns emojis matching the keyword. Supported only if the file database is enabled. Order of results is unspecified
/// </summary>
public static Task<Emojis> GetKeywordEmojisAsync(
this Client client, string text = default, string[] inputLanguageCodes = default)
Expand Down
Loading