Skip to content

Commit 02a17a4

Browse files
committed
Update TDLib to 1.8.58
1 parent eba72d1 commit 02a17a4

File tree

113 files changed

+3832
-194
lines changed

Some content is hidden

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

113 files changed

+3832
-194
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +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.58)### Changed
15+
- Update to [TDLib v1.8.58](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.58).
16+
1417
## [1.8.56.1] - 2025-11-16
1518
### Changed
1619
- Update to [TDLib v1.8.56.1](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.56.1).

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.56.1</Version>
9+
<Version>1.8.58</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 = '4f4df7c6436085391e0b6d74cc7a54cf274c7edf',
6+
[string] $CommitHash = '282f96ca66421c348ed75aaca84471b3e39e64dd',
77
[string] $TdApiUrl = "https://github.com/tdlib/td/raw/$CommitHash/td/generate/scheme/td_api.tl",
88

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

TdLib.Api/Functions/AddGiftCollectionGifts.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class AddGiftCollectionGifts : Function<GiftCollection>
4242
public int CollectionId { get; set; }
4343

4444
/// <summary>
45-
/// Identifier of the gifts to add to the collection; 1-getOption("gift_collection_gift_count_max") identifiers.
45+
/// Identifier of the gifts to add to the collection; 1-getOption("gift_collection_size_max") identifiers.
4646
/// </summary>
4747
[JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))]
4848
public string[] ReceivedGiftIds { get; set; }

TdLib.Api/Functions/AddOffer.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-
/// Sent a suggested post based on a previously sent message in a channel direct messages chat. Can be also used to suggest price or time change for an existing suggested post.
14+
/// Sends a suggested post based on a previously sent message in a channel direct messages chat. Can be also used to suggest price or time change for an existing suggested post.
1515
/// Returns the sent message
1616
/// </summary>
1717
public class AddOffer : Function<Message>
@@ -52,7 +52,7 @@ public class AddOffer : Function<Message>
5252
}
5353

5454
/// <summary>
55-
/// Sent a suggested post based on a previously sent message in a channel direct messages chat. Can be also used to suggest price or time change for an existing suggested post.
55+
/// Sends a suggested post based on a previously sent message in a channel direct messages chat. Can be also used to suggest price or time change for an existing suggested post.
5656
/// Returns the sent message
5757
/// </summary>
5858
public static Task<Message> AddOfferAsync(
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+
/// Adds pending paid reaction in a live story group call. Can't be used in live stories posted by the current user.
15+
/// Call commitPendingLiveStoryReactions or removePendingLiveStoryReactions to actually send all pending reactions when the undo timer is over or abort the sending
16+
/// </summary>
17+
public class AddPendingLiveStoryReaction : Function<Ok>
18+
{
19+
/// <summary>
20+
/// Data type for serialization
21+
/// </summary>
22+
[JsonProperty("@type")]
23+
public override string DataType { get; set; } = "addPendingLiveStoryReaction";
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+
/// Group call identifier
33+
/// </summary>
34+
[JsonConverter(typeof(Converter))]
35+
[JsonProperty("group_call_id")]
36+
public int GroupCallId { get; set; }
37+
38+
/// <summary>
39+
/// Number of Telegram Stars to be used for the reaction. The total number of pending paid reactions must not exceed getOption("paid_group_call_message_star_count_max")
40+
/// </summary>
41+
[JsonConverter(typeof(Converter))]
42+
[JsonProperty("star_count")]
43+
public long StarCount { get; set; }
44+
}
45+
46+
/// <summary>
47+
/// Adds pending paid reaction in a live story group call. Can't be used in live stories posted by the current user.
48+
/// Call commitPendingLiveStoryReactions or removePendingLiveStoryReactions to actually send all pending reactions when the undo timer is over or abort the sending
49+
/// </summary>
50+
public static Task<Ok> AddPendingLiveStoryReactionAsync(
51+
this Client client, int groupCallId = default, long starCount = default)
52+
{
53+
return client.ExecuteAsync(new AddPendingLiveStoryReaction
54+
{
55+
GroupCallId = groupCallId, StarCount = starCount
56+
});
57+
}
58+
}
59+
}
60+
// REUSE-IgnoreEnd

TdLib.Api/Functions/AddStoryAlbumStories.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class AddStoryAlbumStories : Function<StoryAlbum>
4343
public int StoryAlbumId { get; set; }
4444

4545
/// <summary>
46-
/// Identifier of the stories to add to the album; 1-getOption("story_album_story_count_max") identifiers.
46+
/// Identifier of the stories to add to the album; 1-getOption("story_album_size_max") identifiers.
4747
/// </summary>
4848
[JsonProperty("story_ids", ItemConverterType = typeof(Converter))]
4949
public int[] StoryIds { get; set; }
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+
/// Informs TDLib that a gift auction was closed by the user
15+
/// </summary>
16+
public class CloseGiftAuction : Function<Ok>
17+
{
18+
/// <summary>
19+
/// Data type for serialization
20+
/// </summary>
21+
[JsonProperty("@type")]
22+
public override string DataType { get; set; } = "closeGiftAuction";
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+
/// Identifier of the gift, which auction was closed
32+
/// </summary>
33+
[JsonConverter(typeof(Converter.Int64))]
34+
[JsonProperty("gift_id")]
35+
public long GiftId { get; set; }
36+
}
37+
38+
/// <summary>
39+
/// Informs TDLib that a gift auction was closed by the user
40+
/// </summary>
41+
public static Task<Ok> CloseGiftAuctionAsync(
42+
this Client client, long giftId = default)
43+
{
44+
return client.ExecuteAsync(new CloseGiftAuction
45+
{
46+
GiftId = giftId
47+
});
48+
}
49+
}
50+
}
51+
// REUSE-IgnoreEnd
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+
/// Applies all pending paid reactions in a live story group call
15+
/// </summary>
16+
public class CommitPendingLiveStoryReactions : Function<Ok>
17+
{
18+
/// <summary>
19+
/// Data type for serialization
20+
/// </summary>
21+
[JsonProperty("@type")]
22+
public override string DataType { get; set; } = "commitPendingLiveStoryReactions";
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+
/// Group call identifier
32+
/// </summary>
33+
[JsonConverter(typeof(Converter))]
34+
[JsonProperty("group_call_id")]
35+
public int GroupCallId { get; set; }
36+
}
37+
38+
/// <summary>
39+
/// Applies all pending paid reactions in a live story group call
40+
/// </summary>
41+
public static Task<Ok> CommitPendingLiveStoryReactionsAsync(
42+
this Client client, int groupCallId = default)
43+
{
44+
return client.ExecuteAsync(new CommitPendingLiveStoryReactions
45+
{
46+
GroupCallId = groupCallId
47+
});
48+
}
49+
}
50+
}
51+
// REUSE-IgnoreEnd

TdLib.Api/Functions/CreateGiftCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class CreateGiftCollection : Function<GiftCollection>
4343
public string Name { get; set; }
4444

4545
/// <summary>
46-
/// Identifier of the gifts to add to the collection; 0-getOption("gift_collection_gift_count_max") identifiers
46+
/// Identifier of the gifts to add to the collection; 0-getOption("gift_collection_size_max") identifiers
4747
/// </summary>
4848
[JsonProperty("received_gift_ids", ItemConverterType = typeof(Converter))]
4949
public string[] ReceivedGiftIds { get; set; }

0 commit comments

Comments
 (0)