Skip to content

Commit c1d5472

Browse files
committed
Update TDLib to 1.8.61
1 parent afab9ea commit c1d5472

File tree

179 files changed

+2995
-772
lines changed

Some content is hidden

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

179 files changed

+2995
-772
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.61)
15+
### Changed
16+
- Update to [TDLib v1.8.61](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.61).
17+
1418
## [1.8.60] - 2026-01-10
1519
### Changed
1620
- Update to [TDLib v1.8.60](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.60).

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.60</Version>
9+
<Version>1.8.61</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 = '0da5c72f8365fb4857096e716d53175ddbdf5a15',
6+
[string] $CommitHash = '11e254af695060d8890024dd7faa1cc2d6685ef8',
77
[string] $TdApiUrl = "https://github.com/tdlib/td/raw/$CommitHash/td/generate/scheme/td_api.tl",
88

99
[string] $SourceRoot = "$PSScriptRoot/..",

TdLib.Api/Functions/AddProxy.cs

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static partial class TdApi
1313
/// <summary>
1414
/// Adds a proxy server for network requests. Can be called before authorization
1515
/// </summary>
16-
public class AddProxy : Function<Proxy>
16+
public class AddProxy : Function<AddedProxy>
1717
{
1818
/// <summary>
1919
/// Data type for serialization
@@ -28,43 +28,29 @@ public class AddProxy : Function<Proxy>
2828
public override string Extra { get; set; }
2929

3030
/// <summary>
31-
/// Proxy server domain or IP address
31+
/// The proxy to add
3232
/// </summary>
3333
[JsonConverter(typeof(Converter))]
34-
[JsonProperty("server")]
35-
public string Server { get; set; }
36-
37-
/// <summary>
38-
/// Proxy server port
39-
/// </summary>
40-
[JsonConverter(typeof(Converter))]
41-
[JsonProperty("port")]
42-
public int Port { get; set; }
34+
[JsonProperty("proxy")]
35+
public Proxy Proxy { get; set; }
4336

4437
/// <summary>
4538
/// Pass true to immediately enable the proxy
4639
/// </summary>
4740
[JsonConverter(typeof(Converter))]
4841
[JsonProperty("enable")]
4942
public bool Enable { get; set; }
50-
51-
/// <summary>
52-
/// Proxy type
53-
/// </summary>
54-
[JsonConverter(typeof(Converter))]
55-
[JsonProperty("type")]
56-
public ProxyType Type { get; set; }
5743
}
5844

5945
/// <summary>
6046
/// Adds a proxy server for network requests. Can be called before authorization
6147
/// </summary>
62-
public static Task<Proxy> AddProxyAsync(
63-
this Client client, string server = default, int port = default, bool enable = default, ProxyType type = default)
48+
public static Task<AddedProxy> AddProxyAsync(
49+
this Client client, Proxy proxy = default, bool enable = default)
6450
{
6551
return client.ExecuteAsync(new AddProxy
6652
{
67-
Server = server, Port = port, Enable = enable, Type = type
53+
Proxy = proxy, Enable = enable
6854
});
6955
}
7056
}

TdLib.Api/Functions/AnswerInlineQuery.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class AnswerInlineQuery : Function<Ok>
3535
public long InlineQueryId { get; set; }
3636

3737
/// <summary>
38-
/// Pass true if results may be cached and returned only for the user that sent the query. By default, results may be returned to any user who sends the same query
38+
/// Pass true if results may be cached and returned only for the user who sent the query. By default, results may be returned to any user who sends the same query
3939
/// </summary>
4040
[JsonConverter(typeof(Converter))]
4141
[JsonProperty("is_personal")]

TdLib.Api/Functions/BanChatMember.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public class BanChatMember : Function<Ok>
4949
public int BannedUntilDate { get; set; }
5050

5151
/// <summary>
52-
/// Pass true to delete all messages in the chat for the user that is being removed. Always true for supergroups and channels
52+
/// Pass true to delete all messages in the chat for the user who is being removed. Always true for supergroups and channels
5353
/// </summary>
5454
[JsonConverter(typeof(Converter))]
5555
[JsonProperty("revoke_messages")]

TdLib.Api/Functions/BuyGiftUpgrade.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class BuyGiftUpgrade : Function<Ok>
4242
public string PrepaidUpgradeHash { get; set; }
4343

4444
/// <summary>
45-
/// The amount of Telegram Stars the user agreed to pay for the upgrade; must be equal to gift.upgrade_star_count
45+
/// The Telegram Star amount the user agreed to pay for the upgrade; must be equal to gift.upgrade_star_count
4646
/// </summary>
4747
[JsonConverter(typeof(Converter))]
4848
[JsonProperty("star_count")]

TdLib.Api/Functions/GetGiftUpgradeVariants.cs renamed to TdLib.Api/Functions/CraftGift.cs

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ namespace TdLib
1111
public static partial class TdApi
1212
{
1313
/// <summary>
14-
/// Returns all possible variants of upgraded gifts for a regular gift
14+
/// Crafts a new gift from other gifts that will be permanently lost
1515
/// </summary>
16-
public class GetGiftUpgradeVariants : Function<GiftUpgradeVariants>
16+
public class CraftGift : Function<CraftGiftResult>
1717
{
1818
/// <summary>
1919
/// Data type for serialization
2020
/// </summary>
2121
[JsonProperty("@type")]
22-
public override string DataType { get; set; } = "getGiftUpgradeVariants";
22+
public override string DataType { get; set; } = "craftGift";
2323

2424
/// <summary>
2525
/// Extra data attached to the function
@@ -28,22 +28,21 @@ public class GetGiftUpgradeVariants : Function<GiftUpgradeVariants>
2828
public override string Extra { get; set; }
2929

3030
/// <summary>
31-
/// Identifier of the gift
31+
/// Identifier of the gifts to use for crafting
3232
/// </summary>
33-
[JsonConverter(typeof(Converter.Int64))]
34-
[JsonProperty("gift_id")]
35-
public long GiftId { get; set; }
33+
[JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))]
34+
public string[] ReceivedGiftIds { get; set; }
3635
}
3736

3837
/// <summary>
39-
/// Returns all possible variants of upgraded gifts for a regular gift
38+
/// Crafts a new gift from other gifts that will be permanently lost
4039
/// </summary>
41-
public static Task<GiftUpgradeVariants> GetGiftUpgradeVariantsAsync(
42-
this Client client, long giftId = default)
40+
public static Task<CraftGiftResult> CraftGiftAsync(
41+
this Client client, string[] receivedGiftIds = default)
4342
{
44-
return client.ExecuteAsync(new GetGiftUpgradeVariants
43+
return client.ExecuteAsync(new CraftGift
4544
{
46-
GiftId = giftId
45+
ReceivedGiftIds = receivedGiftIds
4746
});
4847
}
4948
}

TdLib.Api/Functions/DropGiftOriginalDetails.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class DropGiftOriginalDetails : Function<Ok>
3535
public string ReceivedGiftId { get; set; }
3636

3737
/// <summary>
38-
/// The amount of Telegram Stars required to pay for the operation
38+
/// The Telegram Star amount required to pay for the operation
3939
/// </summary>
4040
[JsonConverter(typeof(Converter))]
4141
[JsonProperty("star_count")]

TdLib.Api/Functions/EditProxy.cs

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public static partial class TdApi
1313
/// <summary>
1414
/// Edits an existing proxy server for network requests. Can be called before authorization
1515
/// </summary>
16-
public class EditProxy : Function<Proxy>
16+
public class EditProxy : Function<AddedProxy>
1717
{
1818
/// <summary>
1919
/// Data type for serialization
@@ -35,43 +35,29 @@ public class EditProxy : Function<Proxy>
3535
public int ProxyId { get; set; }
3636

3737
/// <summary>
38-
/// Proxy server domain or IP address
38+
/// The new information about the proxy
3939
/// </summary>
4040
[JsonConverter(typeof(Converter))]
41-
[JsonProperty("server")]
42-
public string Server { get; set; }
43-
44-
/// <summary>
45-
/// Proxy server port
46-
/// </summary>
47-
[JsonConverter(typeof(Converter))]
48-
[JsonProperty("port")]
49-
public int Port { get; set; }
41+
[JsonProperty("proxy")]
42+
public Proxy Proxy { get; set; }
5043

5144
/// <summary>
5245
/// Pass true to immediately enable the proxy
5346
/// </summary>
5447
[JsonConverter(typeof(Converter))]
5548
[JsonProperty("enable")]
5649
public bool Enable { get; set; }
57-
58-
/// <summary>
59-
/// Proxy type
60-
/// </summary>
61-
[JsonConverter(typeof(Converter))]
62-
[JsonProperty("type")]
63-
public ProxyType Type { get; set; }
6450
}
6551

6652
/// <summary>
6753
/// Edits an existing proxy server for network requests. Can be called before authorization
6854
/// </summary>
69-
public static Task<Proxy> EditProxyAsync(
70-
this Client client, int proxyId = default, string server = default, int port = default, bool enable = default, ProxyType type = default)
55+
public static Task<AddedProxy> EditProxyAsync(
56+
this Client client, int proxyId = default, Proxy proxy = default, bool enable = default)
7157
{
7258
return client.ExecuteAsync(new EditProxy
7359
{
74-
ProxyId = proxyId, Server = server, Port = port, Enable = enable, Type = type
60+
ProxyId = proxyId, Proxy = proxy, Enable = enable
7561
});
7662
}
7763
}

0 commit comments

Comments
 (0)