Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump version 1.8.30 #264

Merged
merged 5 commits into from
Feb 13, 2025
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
SPDX-FileCopyrightText: 2024 tdsharp contributors <https://github.com/egramtel/tdsharp>
SPDX-FileCopyrightText: 2024-2025 tdsharp contributors <https://github.com/egramtel/tdsharp>

SPDX-License-Identifier: MIT
-->
Expand All @@ -11,6 +11,9 @@ 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/).

## [1.8.45] - 2025-05-13
### Changed
- Update to [TDLib v1.8.45](https://github.com/tdlib/td/tree/721300bcb4d0f2114505712f4dc6350af1ce1a09).
## [1.8.29] - 2024-05-30
### Changed
- Update to [TDLib v1.8.29](https://github.com/tdlib/td/tree/fd3154b28727df9e66423d64168fab1202d8c849).
Expand Down Expand Up @@ -115,4 +118,5 @@ Initial release to support TDLib pre-1.2.
[1.8.12]: https://github.com/egramtel/tdsharp/compare/v1.8.9.1...v1.8.12
[1.8.21]: https://github.com/egramtel/tdsharp/compare/v1.8.12...v1.8.21
[1.8.29]: https://github.com/egramtel/tdsharp/compare/v1.8.21...v1.8.29
[Unreleased]: https://github.com/egramtel/tdsharp/compare/v1.8.29...HEAD
[1.8.45]: https://github.com/egramtel/tdsharp/compare/v1.8.29...v1.8.45
[Unreleased]: https://github.com/egramtel/tdsharp/compare/v1.8.45...HEAD
6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<!--
SPDX-FileCopyrightText: 2024 tdsharp contributors <https://github.com/egramtel/tdsharp>
SPDX-FileCopyrightText: 2024-2025 tdsharp contributors <https://github.com/egramtel/tdsharp>

SPDX-License-Identifier: MIT
-->

<Project>
<PropertyGroup Label="Packaging">
<Version>1.8.29</Version>
<Version>1.8.45</Version>
</PropertyGroup>

<PropertyGroup>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<!-- REUSE-IgnoreStart -->
<Copyright>2024 tdsharp contributors &lt;https://github.com/egramtel/tdsharp&gt;</Copyright>
<Copyright>2025 tdsharp contributors &lt;https://github.com/egramtel/tdsharp&gt;</Copyright>
<!-- REUSE-IgnoreEnd -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Copyright (c) 2018 Sergey Khabibullin
Copyright (c) 2024 tdsharp contributors
Copyright (c) 2025 tdsharp contributors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions Scripts/Get-TlFiles.ps1
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# SPDX-FileCopyrightText: 2024 tdsharp contributors <https://github.com/egramtel/tdsharp>
# SPDX-FileCopyrightText: 2024-2025 tdsharp contributors <https://github.com/egramtel/tdsharp>
#
# SPDX-License-Identifier: MIT

param(
[string] $CommitHash = 'fd3154b28727df9e66423d64168fab1202d8c849',
[string] $CommitHash = '721300bcb4d0f2114505712f4dc6350af1ce1a09',
[string] $TdApiUrl = "https://github.com/tdlib/td/raw/$CommitHash/td/generate/scheme/td_api.tl",

[string] $SourceRoot = "$PSScriptRoot/..",
Expand Down
66 changes: 66 additions & 0 deletions TdLib.Api/Functions/AddBotMediaPreview.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
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 new media preview to the beginning of the list of media previews of a bot. Returns the added preview after addition is completed server-side. The total number of previews must not exceed getOption("bot_media_preview_count_max") for the given language
/// </summary>
public class AddBotMediaPreview : Function<BotMediaPreview>
{
/// <summary>
/// Data type for serialization
/// </summary>
[JsonProperty("@type")]
public override string DataType { get; set; } = "addBotMediaPreview";

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

/// <summary>
/// Identifier of the target bot. The bot must be owned and must have the main Web App
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("bot_user_id")]
public long BotUserId { get; set; }

/// <summary>
/// A two-letter ISO 639-1 language code for which preview is added. If empty, then the preview will be shown to all users for whose languages there are no dedicated previews.
/// If non-empty, then there must be an official language pack of the same name, which is returned by getLocalizationTargetInfo
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("language_code")]
public string LanguageCode { get; set; }

/// <summary>
/// Content of the added preview
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("content")]
public InputStoryContent Content { get; set; }
}

/// <summary>
/// Adds a new media preview to the beginning of the list of media previews of a bot. Returns the added preview after addition is completed server-side. The total number of previews must not exceed getOption("bot_media_preview_count_max") for the given language
/// </summary>
public static Task<BotMediaPreview> AddBotMediaPreviewAsync(
this Client client, long botUserId = default, string languageCode = default, InputStoryContent content = default)
{
return client.ExecuteAsync(new AddBotMediaPreview
{
BotUserId = botUserId, LanguageCode = languageCode, Content = content
});
}
}
}
// REUSE-IgnoreEnd
2 changes: 1 addition & 1 deletion TdLib.Api/Functions/AddMessageReaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class AddMessageReaction : Function<Ok>
public long MessageId { get; set; }

/// <summary>
/// Type of the reaction to add
/// Type of the reaction to add. Use addPendingPaidMessageReaction instead to add the paid reaction
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("reaction_type")]
Expand Down
72 changes: 72 additions & 0 deletions TdLib.Api/Functions/AddPendingPaidMessageReaction.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
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 the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available for the message
/// </summary>
public class AddPendingPaidMessageReaction : Function<Ok>
{
/// <summary>
/// Data type for serialization
/// </summary>
[JsonProperty("@type")]
public override string DataType { get; set; } = "addPendingPaidMessageReaction";

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

/// <summary>
/// Identifier of the chat to which the message belongs
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("chat_id")]
public long ChatId { get; set; }

/// <summary>
/// Identifier of the message
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("message_id")]
public long MessageId { get; set; }

/// <summary>
/// Number of Telegram Stars to be used for the reaction. The total number of pending paid reactions must not exceed getOption("paid_reaction_star_count_max")
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("star_count")]
public long StarCount { get; set; }

/// <summary>
/// Type of the paid reaction; pass null if the user didn't choose reaction type explicitly, for example, the reaction is set from the message bubble
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("type")]
public PaidReactionType Type { get; set; }
}

/// <summary>
/// Adds the paid message reaction to a message. Use getMessageAvailableReactions to check whether the reaction is available for the message
/// </summary>
public static Task<Ok> AddPendingPaidMessageReactionAsync(
this Client client, long chatId = default, long messageId = default, long starCount = default, PaidReactionType type = default)
{
return client.ExecuteAsync(new AddPendingPaidMessageReaction
{
ChatId = chatId, MessageId = messageId, StarCount = starCount, Type = type
});
}
}
}
// REUSE-IgnoreEnd
2 changes: 1 addition & 1 deletion TdLib.Api/Functions/AddQuickReplyShortcutMessageAlbum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class AddQuickReplyShortcutMessageAlbum : Function<QuickReplyMessages>
public long ReplyToMessageId { get; set; }

/// <summary>
/// Contents of messages to be sent. At most 10 messages can be added to an album
/// Contents of messages to be sent. At most 10 messages can be added to an album. All messages must have the same value of show_caption_above_media
/// </summary>
[JsonProperty("input_message_contents", ItemConverterType = typeof(Converter))]
public InputMessageContent[] InputMessageContents { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ namespace TdLib
public static partial class TdApi
{
/// <summary>
/// Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase
/// Checks whether an in-store purchase is possible. Must be called before any in-store purchase
/// </summary>
public class CanPurchasePremium : Function<Ok>
public class CanPurchaseFromStore : Function<Ok>
{
/// <summary>
/// Data type for serialization
/// </summary>
[JsonProperty("@type")]
public override string DataType { get; set; } = "canPurchasePremium";
public override string DataType { get; set; } = "canPurchaseFromStore";

/// <summary>
/// Extra data attached to the function
Expand All @@ -36,12 +36,12 @@ public class CanPurchasePremium : Function<Ok>
}

/// <summary>
/// Checks whether Telegram Premium purchase is possible. Must be called before in-store Premium purchase
/// Checks whether an in-store purchase is possible. Must be called before any in-store purchase
/// </summary>
public static Task<Ok> CanPurchasePremiumAsync(
public static Task<Ok> CanPurchaseFromStoreAsync(
this Client client, StorePaymentPurpose purpose = default)
{
return client.ExecuteAsync(new CanPurchasePremium
return client.ExecuteAsync(new CanPurchaseFromStore
{
Purpose = purpose
});
Expand Down
2 changes: 1 addition & 1 deletion TdLib.Api/Functions/CanSendStory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CanSendStory : Function<CanSendStoryResult>
public override string Extra { get; set; }

/// <summary>
/// Chat identifier
/// Chat identifier. Pass Saved Messages chat identifier when posting a story on behalf of the current user
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("chat_id")]
Expand Down
4 changes: 2 additions & 2 deletions TdLib.Api/Functions/CancelPreliminaryUploadFile.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>
/// Stops the preliminary uploading of a file. Supported only for files uploaded by using preliminaryUploadFile. For other files the behavior is undefined
/// Stops the preliminary uploading of a file. Supported only for files uploaded by using preliminaryUploadFile
/// </summary>
public class CancelPreliminaryUploadFile : Function<Ok>
{
Expand All @@ -36,7 +36,7 @@ public class CancelPreliminaryUploadFile : Function<Ok>
}

/// <summary>
/// Stops the preliminary uploading of a file. Supported only for files uploaded by using preliminaryUploadFile. For other files the behavior is undefined
/// Stops the preliminary uploading of a file. Supported only for files uploaded by using preliminaryUploadFile
/// </summary>
public static Task<Ok> CancelPreliminaryUploadFileAsync(
this Client client, int fileId = default)
Expand Down
65 changes: 65 additions & 0 deletions TdLib.Api/Functions/CheckWebAppFileDownload.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
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 whether a file can be downloaded and saved locally by Web App request
/// </summary>
public class CheckWebAppFileDownload : Function<Ok>
{
/// <summary>
/// Data type for serialization
/// </summary>
[JsonProperty("@type")]
public override string DataType { get; set; } = "checkWebAppFileDownload";

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

/// <summary>
/// Identifier of the bot, providing the Web App
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("bot_user_id")]
public long BotUserId { get; set; }

/// <summary>
/// Name of the file
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("file_name")]
public string FileName { get; set; }

/// <summary>
/// URL of the file
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("url")]
public string Url { get; set; }
}

/// <summary>
/// Checks whether a file can be downloaded and saved locally by Web App request
/// </summary>
public static Task<Ok> CheckWebAppFileDownloadAsync(
this Client client, long botUserId = default, string fileName = default, string url = default)
{
return client.ExecuteAsync(new CheckWebAppFileDownload
{
BotUserId = botUserId, FileName = fileName, Url = url
});
}
}
}
// REUSE-IgnoreEnd
4 changes: 2 additions & 2 deletions TdLib.Api/Functions/CleanFileName.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>
/// Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. Can be called synchronously
/// Removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called synchronously
/// </summary>
public class CleanFileName : Function<Text>
{
Expand All @@ -36,7 +36,7 @@ public class CleanFileName : Function<Text>
}

/// <summary>
/// Removes potentially dangerous characters from the name of a file. The encoding of the file name is supposed to be UTF-8. Returns an empty string on failure. Can be called synchronously
/// Removes potentially dangerous characters from the name of a file. Returns an empty string on failure. Can be called synchronously
/// </summary>
public static Task<Text> CleanFileNameAsync(
this Client client, string fileName = default)
Expand Down
Loading
Loading