Skip to content

Commit 5df3b51

Browse files
committed
Update TDLib to 1.8.59
1 parent 3e938aa commit 5df3b51

File tree

111 files changed

+1742
-192
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1742
-192
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ All notable changes to this project will be documented in this file.
1111

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

14+
## [Unreleased] (1.8.59)
15+
### Changed
16+
- Update to [TDLib v1.8.59](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.59).
17+
1418
## [1.8.58] - 2025-12-07
1519
### Changed
1620
- Update to [TDLib v1.8.58](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.58).

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SPDX-License-Identifier: MIT
66

77
<Project>
88
<PropertyGroup Label="Packaging">
9-
<Version>1.8.58</Version>
9+
<Version>1.8.59</Version>
1010
</PropertyGroup>
1111

1212
<PropertyGroup>

Scripts/Get-TlFiles.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44

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

99
[string] $SourceRoot = "$PSScriptRoot/..",
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
using System;
2+
using System.Threading.Tasks;
3+
using Newtonsoft.Json;
4+
5+
// REUSE-IgnoreStart
6+
namespace TdLib
7+
{
8+
/// <summary>
9+
/// Autogenerated TDLib APIs
10+
/// </summary>
11+
public static partial class TdApi
12+
{
13+
/// <summary>
14+
/// 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
15+
/// </summary>
16+
public class AddLoginPasskey : Function<Passkey>
17+
{
18+
/// <summary>
19+
/// Data type for serialization
20+
/// </summary>
21+
[JsonProperty("@type")]
22+
public override string DataType { get; set; } = "addLoginPasskey";
23+
24+
/// <summary>
25+
/// Extra data attached to the function
26+
/// </summary>
27+
[JsonProperty("@extra")]
28+
public override string Extra { get; set; }
29+
30+
/// <summary>
31+
/// JSON-encoded client data
32+
/// </summary>
33+
[JsonConverter(typeof(Converter))]
34+
[JsonProperty("client_data")]
35+
public string ClientData { get; set; }
36+
37+
/// <summary>
38+
/// Passkey attestation object
39+
/// </summary>
40+
[JsonConverter(typeof(Converter))]
41+
[JsonProperty("attestation_object")]
42+
public byte[] AttestationObject { get; set; }
43+
}
44+
45+
/// <summary>
46+
/// 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
47+
/// </summary>
48+
public static Task<Passkey> AddLoginPasskeyAsync(
49+
this Client client, string clientData = default, byte[] attestationObject = default)
50+
{
51+
return client.ExecuteAsync(new AddLoginPasskey
52+
{
53+
ClientData = clientData, AttestationObject = attestationObject
54+
});
55+
}
56+
}
57+
}
58+
// REUSE-IgnoreEnd

TdLib.Api/Functions/CanSendMessageToUser.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace TdLib
1111
public static partial class TdApi
1212
{
1313
/// <summary>
14-
/// Check whether the current user can message another user or try to create a chat with them
14+
/// Checks whether the current user can message another user or try to create a chat with them
1515
/// </summary>
1616
public class CanSendMessageToUser : Function<CanSendMessageToUserResult>
1717
{
@@ -43,7 +43,7 @@ public class CanSendMessageToUser : Function<CanSendMessageToUserResult>
4343
}
4444

4545
/// <summary>
46-
/// Check whether the current user can message another user or try to create a chat with them
46+
/// Checks whether the current user can message another user or try to create a chat with them
4747
/// </summary>
4848
public static Task<CanSendMessageToUserResult> CanSendMessageToUserAsync(
4949
this Client client, long userId = default, bool onlyLocal = default)
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
using System;
2+
using System.Threading.Tasks;
3+
using Newtonsoft.Json;
4+
5+
// REUSE-IgnoreStart
6+
namespace TdLib
7+
{
8+
/// <summary>
9+
/// Autogenerated TDLib APIs
10+
/// </summary>
11+
public static partial class TdApi
12+
{
13+
/// <summary>
14+
/// 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
15+
/// authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is
16+
/// authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
17+
/// </summary>
18+
public class CheckAuthenticationPasskey : Function<Ok>
19+
{
20+
/// <summary>
21+
/// Data type for serialization
22+
/// </summary>
23+
[JsonProperty("@type")]
24+
public override string DataType { get; set; } = "checkAuthenticationPasskey";
25+
26+
/// <summary>
27+
/// Extra data attached to the function
28+
/// </summary>
29+
[JsonProperty("@extra")]
30+
public override string Extra { get; set; }
31+
32+
/// <summary>
33+
/// Base64url-encoded identifier of the credential
34+
/// </summary>
35+
[JsonConverter(typeof(Converter))]
36+
[JsonProperty("credential_id")]
37+
public string CredentialId { get; set; }
38+
39+
/// <summary>
40+
/// JSON-encoded client data
41+
/// </summary>
42+
[JsonConverter(typeof(Converter))]
43+
[JsonProperty("client_data")]
44+
public string ClientData { get; set; }
45+
46+
/// <summary>
47+
/// Authenticator data of the application that created the credential
48+
/// </summary>
49+
[JsonConverter(typeof(Converter))]
50+
[JsonProperty("authenticator_data")]
51+
public byte[] AuthenticatorData { get; set; }
52+
53+
/// <summary>
54+
/// Cryptographic signature of the credential
55+
/// </summary>
56+
[JsonConverter(typeof(Converter))]
57+
[JsonProperty("signature")]
58+
public byte[] Signature { get; set; }
59+
60+
/// <summary>
61+
/// User handle of the passkey
62+
/// </summary>
63+
[JsonConverter(typeof(Converter))]
64+
[JsonProperty("user_handle")]
65+
public byte[] UserHandle { get; set; }
66+
}
67+
68+
/// <summary>
69+
/// 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
70+
/// authorizationStateWaitPhoneNumber or authorizationStateWaitOtherDeviceConfirmation, or if there is no pending authentication query and the current authorization state is
71+
/// authorizationStateWaitPremiumPurchase, authorizationStateWaitEmailAddress, authorizationStateWaitEmailCode, authorizationStateWaitCode, authorizationStateWaitRegistration, or authorizationStateWaitPassword
72+
/// </summary>
73+
public static Task<Ok> CheckAuthenticationPasskeyAsync(
74+
this Client client, string credentialId = default, string clientData = default, byte[] authenticatorData = default, byte[] signature = default, byte[] userHandle = default)
75+
{
76+
return client.ExecuteAsync(new CheckAuthenticationPasskey
77+
{
78+
CredentialId = credentialId, ClientData = clientData, AuthenticatorData = authenticatorData, Signature = signature, UserHandle = userHandle
79+
});
80+
}
81+
}
82+
}
83+
// REUSE-IgnoreEnd

TdLib.Api/Functions/CheckPhoneNumberCode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace TdLib
1111
public static partial class TdApi
1212
{
1313
/// <summary>
14-
/// Check the authentication code and completes the request for which the code was sent if appropriate
14+
/// Checks the authentication code and completes the request for which the code was sent if appropriate
1515
/// </summary>
1616
public class CheckPhoneNumberCode : Function<Ok>
1717
{
@@ -36,7 +36,7 @@ public class CheckPhoneNumberCode : Function<Ok>
3636
}
3737

3838
/// <summary>
39-
/// Check the authentication code and completes the request for which the code was sent if appropriate
39+
/// Checks the authentication code and completes the request for which the code was sent if appropriate
4040
/// </summary>
4141
public static Task<Ok> CheckPhoneNumberCodeAsync(
4242
this Client client, string code = default)

TdLib.Api/Functions/CheckPremiumGiftCode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace TdLib
1111
public static partial class TdApi
1212
{
1313
/// <summary>
14-
/// Return information about a Telegram Premium gift code
14+
/// Returns information about a Telegram Premium gift code
1515
/// </summary>
1616
public class CheckPremiumGiftCode : Function<PremiumGiftCodeInfo>
1717
{
@@ -36,7 +36,7 @@ public class CheckPremiumGiftCode : Function<PremiumGiftCodeInfo>
3636
}
3737

3838
/// <summary>
39-
/// Return information about a Telegram Premium gift code
39+
/// Returns information about a Telegram Premium gift code
4040
/// </summary>
4141
public static Task<PremiumGiftCodeInfo> CheckPremiumGiftCodeAsync(
4242
this Client client, string code = default)

TdLib.Api/Functions/DeleteBotMediaPreviews.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace TdLib
1111
public static partial class TdApi
1212
{
1313
/// <summary>
14-
/// Delete media previews from the list of media previews of a bot
14+
/// Deletes media previews from the list of media previews of a bot
1515
/// </summary>
1616
public class DeleteBotMediaPreviews : Function<Ok>
1717
{
@@ -49,7 +49,7 @@ public class DeleteBotMediaPreviews : Function<Ok>
4949
}
5050

5151
/// <summary>
52-
/// Delete media previews from the list of media previews of a bot
52+
/// Deletes media previews from the list of media previews of a bot
5353
/// </summary>
5454
public static Task<Ok> DeleteBotMediaPreviewsAsync(
5555
this Client client, long botUserId = default, string languageCode = default, int[] fileIds = default)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
using System;
2+
using System.Threading.Tasks;
3+
using Newtonsoft.Json;
4+
5+
// REUSE-IgnoreStart
6+
namespace TdLib
7+
{
8+
/// <summary>
9+
/// Autogenerated TDLib APIs
10+
/// </summary>
11+
public static partial class TdApi
12+
{
13+
/// <summary>
14+
/// Returns parameters for authentication using a passkey as JSON-serialized string
15+
/// </summary>
16+
public class GetAuthenticationPasskeyParameters : Function<Text>
17+
{
18+
/// <summary>
19+
/// Data type for serialization
20+
/// </summary>
21+
[JsonProperty("@type")]
22+
public override string DataType { get; set; } = "getAuthenticationPasskeyParameters";
23+
24+
/// <summary>
25+
/// Extra data attached to the function
26+
/// </summary>
27+
[JsonProperty("@extra")]
28+
public override string Extra { get; set; }
29+
30+
31+
}
32+
33+
/// <summary>
34+
/// Returns parameters for authentication using a passkey as JSON-serialized string
35+
/// </summary>
36+
public static Task<Text> GetAuthenticationPasskeyParametersAsync(
37+
this Client client)
38+
{
39+
return client.ExecuteAsync(new GetAuthenticationPasskeyParameters
40+
{
41+
42+
});
43+
}
44+
}
45+
}
46+
// REUSE-IgnoreEnd

0 commit comments

Comments
 (0)