Skip to content

Commit f695998

Browse files
committed
Update TDLib to 1.8.62
1 parent 60a3989 commit f695998

Some content is hidden

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

57 files changed

+1480
-127
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ 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.61.1)
14+
## [Unreleased] (1.8.62)
1515
### Changed
16-
- Update to [TDLib v1.8.61.1](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.61.1).
16+
- Update to [TDLib v1.8.62](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.62).
1717

1818
## [1.8.61] - 2026-03-01
1919
### Changed

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.61.1</Version>
9+
<Version>1.8.62</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 = '6d509061574d684117f74133056aa43df89022fc',
6+
[string] $CommitHash = 'e597838871547131ef92332fca601f5effba4e8a',
77
[string] $TdApiUrl = "https://github.com/tdlib/td/raw/$CommitHash/td/generate/scheme/td_api.tl",
88

99
[string] $SourceRoot = "$PSScriptRoot/..",
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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+
/// Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization.
15+
/// May return an empty link if just a toast about successful login has to be shown
16+
/// </summary>
17+
public class AcceptOauthRequest : Function<HttpUrl>
18+
{
19+
/// <summary>
20+
/// Data type for serialization
21+
/// </summary>
22+
[JsonProperty("@type")]
23+
public override string DataType { get; set; } = "acceptOauthRequest";
24+
25+
/// <summary>
26+
/// Extra data attached to the function
27+
/// </summary>
28+
[JsonProperty("@extra")]
29+
public override string Extra { get; set; }
30+
31+
/// <summary>
32+
/// URL of the OAuth deep link
33+
/// </summary>
34+
[JsonConverter(typeof(Converter))]
35+
[JsonProperty("url")]
36+
public string Url { get; set; }
37+
38+
/// <summary>
39+
/// The matching code chosen by the user
40+
/// </summary>
41+
[JsonConverter(typeof(Converter))]
42+
[JsonProperty("match_code")]
43+
public string MatchCode { get; set; }
44+
45+
/// <summary>
46+
/// Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages
47+
/// </summary>
48+
[JsonConverter(typeof(Converter))]
49+
[JsonProperty("allow_write_access")]
50+
public bool AllowWriteAccess { get; set; }
51+
52+
/// <summary>
53+
/// Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number
54+
/// </summary>
55+
[JsonConverter(typeof(Converter))]
56+
[JsonProperty("allow_phone_number_access")]
57+
public bool AllowPhoneNumberAccess { get; set; }
58+
}
59+
60+
/// <summary>
61+
/// Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization.
62+
/// May return an empty link if just a toast about successful login has to be shown
63+
/// </summary>
64+
public static Task<HttpUrl> AcceptOauthRequestAsync(
65+
this Client client, string url = default, string matchCode = default, bool allowWriteAccess = default, bool allowPhoneNumberAccess = default)
66+
{
67+
return client.ExecuteAsync(new AcceptOauthRequest
68+
{
69+
Url = url, MatchCode = matchCode, AllowWriteAccess = allowWriteAccess, AllowPhoneNumberAccess = allowPhoneNumberAccess
70+
});
71+
}
72+
}
73+
}
74+
// REUSE-IgnoreEnd
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
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 match-code for an OAuth authorization request. If fails, then the authorization request has failed. Otherwise,
15+
/// authorization confirmation dialog must be shown and the link must be processed using acceptOauthRequest or declineOauthRequest
16+
/// </summary>
17+
public class CheckOauthRequestMatchCode : Function<Ok>
18+
{
19+
/// <summary>
20+
/// Data type for serialization
21+
/// </summary>
22+
[JsonProperty("@type")]
23+
public override string DataType { get; set; } = "checkOauthRequestMatchCode";
24+
25+
/// <summary>
26+
/// Extra data attached to the function
27+
/// </summary>
28+
[JsonProperty("@extra")]
29+
public override string Extra { get; set; }
30+
31+
/// <summary>
32+
/// URL of the OAuth deep link
33+
/// </summary>
34+
[JsonConverter(typeof(Converter))]
35+
[JsonProperty("url")]
36+
public string Url { get; set; }
37+
38+
/// <summary>
39+
/// The matching code chosen by the user
40+
/// </summary>
41+
[JsonConverter(typeof(Converter))]
42+
[JsonProperty("match_code")]
43+
public string MatchCode { get; set; }
44+
}
45+
46+
/// <summary>
47+
/// Checks a match-code for an OAuth authorization request. If fails, then the authorization request has failed. Otherwise,
48+
/// authorization confirmation dialog must be shown and the link must be processed using acceptOauthRequest or declineOauthRequest
49+
/// </summary>
50+
public static Task<Ok> CheckOauthRequestMatchCodeAsync(
51+
this Client client, string url = default, string matchCode = default)
52+
{
53+
return client.ExecuteAsync(new CheckOauthRequestMatchCode
54+
{
55+
Url = url, MatchCode = matchCode
56+
});
57+
}
58+
}
59+
}
60+
// REUSE-IgnoreEnd

TdLib.Api/Functions/CraftGift.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class CraftGift : Function<CraftGiftResult>
2828
public override string Extra { get; set; }
2929

3030
/// <summary>
31-
/// Identifier of the gifts to use for crafting
31+
/// Identifier of the gifts to use for crafting. In the case of a successful craft, the resulting gift will have the number of the first gift.
3232
/// </summary>
3333
[JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))]
3434
public string[] ReceivedGiftIds { get; set; }

TdLib.Api/Functions/CreateVideoChat.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-
/// Creates a video chat (a group call bound to a chat). Available only for basic groups, supergroups and channels; requires can_manage_video_chats administrator right
14+
/// Creates a video chat (a group call bound to a chat); for basic groups, supergroups and channels only; requires can_manage_video_chats administrator right
1515
/// </summary>
1616
public class CreateVideoChat : Function<GroupCallId>
1717
{
@@ -57,7 +57,7 @@ public class CreateVideoChat : Function<GroupCallId>
5757
}
5858

5959
/// <summary>
60-
/// Creates a video chat (a group call bound to a chat). Available only for basic groups, supergroups and channels; requires can_manage_video_chats administrator right
60+
/// Creates a video chat (a group call bound to a chat); for basic groups, supergroups and channels only; requires can_manage_video_chats administrator right
6161
/// </summary>
6262
public static Task<GroupCallId> CreateVideoChatAsync(
6363
this Client client, long chatId = default, string title = default, int startDate = default, bool isRtmpStream = default)
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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+
/// Declines an OAuth authorization request
15+
/// </summary>
16+
public class DeclineOauthRequest : Function<Ok>
17+
{
18+
/// <summary>
19+
/// Data type for serialization
20+
/// </summary>
21+
[JsonProperty("@type")]
22+
public override string DataType { get; set; } = "declineOauthRequest";
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+
/// URL of the OAuth deep link
32+
/// </summary>
33+
[JsonConverter(typeof(Converter))]
34+
[JsonProperty("url")]
35+
public string Url { get; set; }
36+
}
37+
38+
/// <summary>
39+
/// Declines an OAuth authorization request
40+
/// </summary>
41+
public static Task<Ok> DeclineOauthRequestAsync(
42+
this Client client, string url = default)
43+
{
44+
return client.ExecuteAsync(new DeclineOauthRequest
45+
{
46+
Url = url
47+
});
48+
}
49+
}
50+
}
51+
// REUSE-IgnoreEnd

TdLib.Api/Functions/GetChatOwnerAfterLeaving.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-
/// Returns the user who will become the owner of the chat after 7 days if the current user does not return to the chat during that period; requires owner privileges in the chat.
14+
/// Returns the user who will become the owner of the chat after 7 days if the current user does not return to the supergroup or channel during that period or immediately for basic groups; requires owner privileges in the chat.
1515
/// Available only for supergroups and channel chats
1616
/// </summary>
1717
public class GetChatOwnerAfterLeaving : Function<User>
@@ -37,7 +37,7 @@ public class GetChatOwnerAfterLeaving : Function<User>
3737
}
3838

3939
/// <summary>
40-
/// Returns the user who will become the owner of the chat after 7 days if the current user does not return to the chat during that period; requires owner privileges in the chat.
40+
/// Returns the user who will become the owner of the chat after 7 days if the current user does not return to the supergroup or channel during that period or immediately for basic groups; requires owner privileges in the chat.
4141
/// Available only for supergroups and channel chats
4242
/// </summary>
4343
public static Task<User> GetChatOwnerAfterLeavingAsync(

TdLib.Api/Functions/GetExternalLink.cs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,18 @@ public class GetExternalLink : Function<HttpUrl>
4141
[JsonConverter(typeof(Converter))]
4242
[JsonProperty("allow_write_access")]
4343
public bool AllowWriteAccess { get; set; }
44-
45-
/// <summary>
46-
/// Pass true if the current user allowed the bot that was returned in getExternalLinkInfo, to access their phone number
47-
/// </summary>
48-
[JsonConverter(typeof(Converter))]
49-
[JsonProperty("allow_phone_number_access")]
50-
public bool AllowPhoneNumberAccess { get; set; }
5144
}
5245

5346
/// <summary>
5447
/// Returns an HTTP URL which can be used to automatically authorize the current user on a website after clicking an HTTP link.
5548
/// Use the method getExternalLinkInfo to find whether a prior user confirmation is needed. May return an empty link if just a toast about successful login has to be shown
5649
/// </summary>
5750
public static Task<HttpUrl> GetExternalLinkAsync(
58-
this Client client, string link = default, bool allowWriteAccess = default, bool allowPhoneNumberAccess = default)
51+
this Client client, string link = default, bool allowWriteAccess = default)
5952
{
6053
return client.ExecuteAsync(new GetExternalLink
6154
{
62-
Link = link, AllowWriteAccess = allowWriteAccess, AllowPhoneNumberAccess = allowPhoneNumberAccess
55+
Link = link, AllowWriteAccess = allowWriteAccess
6356
});
6457
}
6558
}

0 commit comments

Comments
 (0)