Skip to content
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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ 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/).

## [Unreleased] (1.8.68)
### Changed
- Update to [TDLib v1.8.68](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.68).
- **(Breaking!)** `Object.Extra` has been renamed to `Object.ExtraData`, to free room for certain new TDLib properties also named `extra`.

## [1.8.67] - 2026-08-27
### Changed
- Update to [TDLib v1.8.67](https://github.com/ForNeVeR/tdlib-versioned/releases/tag/tdlib%2Fv1.8.67).
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SPDX-License-Identifier: MIT

<Project>
<PropertyGroup Label="Packaging">
<Version>1.8.67</Version>
<Version>1.8.68</Version>
</PropertyGroup>

<PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Scripts/Get-TlFiles.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# SPDX-License-Identifier: MIT

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

[string] $SourceRoot = "$PSScriptRoot/..",
Expand Down
78 changes: 40 additions & 38 deletions TdLib.Api/Functions/AcceptCall.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,58 @@
using Newtonsoft.Json;

// REUSE-IgnoreStart
namespace TdLib
namespace TdLib;

/// <summary>
/// Autogenerated TDLib APIs
/// </summary>
public static partial class TdApi
{
/// <summary>
/// Autogenerated TDLib APIs
/// Accepts an incoming call
/// </summary>
public static partial class TdApi
public class AcceptCall : Function<Ok>
{
/// <summary>
/// Accepts an incoming call
/// Data type for serialization
/// </summary>
public class AcceptCall : Function<Ok>
{
/// <summary>
/// Data type for serialization
/// </summary>
[JsonProperty("@type")]
public override string DataType { get; set; } = "acceptCall";

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

/// <summary>
/// Call identifier
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("call_id")]
public int CallId { get; set; }
/// <summary>
/// Extra data attached to the function.
/// </summary>
/// <remarks>
/// TdSharp internally uses this to find responses corresponding to each request initiated by the user.
/// </remarks>
[JsonProperty("@extra")]
public override string ExtraData { get; set; }

/// <summary>
/// The call protocols supported by the application
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("protocol")]
public CallProtocol Protocol { get; set; }
}
/// <summary>
/// Call identifier
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("call_id")]
public int CallId { get; set; }

/// <summary>
/// Accepts an incoming call
/// The call protocols supported by the application
/// </summary>
public static Task<Ok> AcceptCallAsync(
this IClient client, int callId = default, CallProtocol protocol = default)
[JsonConverter(typeof(Converter))]
[JsonProperty("protocol")]
public CallProtocol Protocol { get; set; }
}

/// <summary>
/// Accepts an incoming call
/// </summary>
public static Task<Ok> AcceptCallAsync(
this IClient client, int callId = default, CallProtocol protocol = default)
{
return client.ExecuteAsync(new AcceptCall
{
return client.ExecuteAsync(new AcceptCall
{
CallId = callId, Protocol = protocol
});
}
CallId = callId, Protocol = protocol
});
}
}
// REUSE-IgnoreEnd
106 changes: 54 additions & 52 deletions TdLib.Api/Functions/AcceptOauthRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,72 +3,74 @@
using Newtonsoft.Json;

// REUSE-IgnoreStart
namespace TdLib
namespace TdLib;

/// <summary>
/// Autogenerated TDLib APIs
/// </summary>
public static partial class TdApi
{
/// <summary>
/// Autogenerated TDLib APIs
/// Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization.
/// May return an empty link if just a toast about successful login has to be shown
/// </summary>
public static partial class TdApi
public class AcceptOauthRequest : Function<HttpUrl>
{
/// <summary>
/// Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization.
/// May return an empty link if just a toast about successful login has to be shown
/// Data type for serialization
/// </summary>
public class AcceptOauthRequest : Function<HttpUrl>
{
/// <summary>
/// Data type for serialization
/// </summary>
[JsonProperty("@type")]
public override string DataType { get; set; } = "acceptOauthRequest";
[JsonProperty("@type")]
public override string DataType { get; set; } = "acceptOauthRequest";

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

/// <summary>
/// URL of the OAuth deep link
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("url")]
public string Url { get; set; }
/// <summary>
/// Extra data attached to the function.
/// </summary>
/// <remarks>
/// TdSharp internally uses this to find responses corresponding to each request initiated by the user.
/// </remarks>
[JsonProperty("@extra")]
public override string ExtraData { get; set; }

/// <summary>
/// The matching code chosen by the user
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("match_code")]
public string MatchCode { get; set; }
/// <summary>
/// URL of the OAuth deep link
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("url")]
public string Url { get; set; }

/// <summary>
/// Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("allow_write_access")]
public bool AllowWriteAccess { get; set; }
/// <summary>
/// The matching code chosen by the user
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("match_code")]
public string MatchCode { get; set; }

/// <summary>
/// Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("allow_phone_number_access")]
public bool AllowPhoneNumberAccess { get; set; }
}
/// <summary>
/// Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to send them messages
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("allow_write_access")]
public bool AllowWriteAccess { get; set; }

/// <summary>
/// Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization.
/// May return an empty link if just a toast about successful login has to be shown
/// Pass true if the current user allowed the bot that was returned in getOauthLinkInfo, to access their phone number
/// </summary>
public static Task<HttpUrl> AcceptOauthRequestAsync(
this IClient client, string url = default, string matchCode = default, bool allowWriteAccess = default, bool allowPhoneNumberAccess = default)
[JsonConverter(typeof(Converter))]
[JsonProperty("allow_phone_number_access")]
public bool AllowPhoneNumberAccess { get; set; }
}

/// <summary>
/// Accepts an OAuth authorization request. Returns an HTTP URL to open after successful authorization.
/// May return an empty link if just a toast about successful login has to be shown
/// </summary>
public static Task<HttpUrl> AcceptOauthRequestAsync(
this IClient client, string url = default, string matchCode = default, bool allowWriteAccess = default, bool allowPhoneNumberAccess = default)
{
return client.ExecuteAsync(new AcceptOauthRequest
{
return client.ExecuteAsync(new AcceptOauthRequest
{
Url = url, MatchCode = matchCode, AllowWriteAccess = allowWriteAccess, AllowPhoneNumberAccess = allowPhoneNumberAccess
});
}
Url = url, MatchCode = matchCode, AllowWriteAccess = allowWriteAccess, AllowPhoneNumberAccess = allowPhoneNumberAccess
});
}
}
// REUSE-IgnoreEnd
66 changes: 34 additions & 32 deletions TdLib.Api/Functions/AcceptTermsOfService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,51 @@
using Newtonsoft.Json;

// REUSE-IgnoreStart
namespace TdLib
namespace TdLib;

/// <summary>
/// Autogenerated TDLib APIs
/// </summary>
public static partial class TdApi
{
/// <summary>
/// Autogenerated TDLib APIs
/// Accepts Telegram terms of service
/// </summary>
public static partial class TdApi
public class AcceptTermsOfService : Function<Ok>
{
/// <summary>
/// Accepts Telegram terms of service
/// Data type for serialization
/// </summary>
public class AcceptTermsOfService : Function<Ok>
{
/// <summary>
/// Data type for serialization
/// </summary>
[JsonProperty("@type")]
public override string DataType { get; set; } = "acceptTermsOfService";

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

/// <summary>
/// Terms of service identifier
/// </summary>
[JsonConverter(typeof(Converter))]
[JsonProperty("terms_of_service_id")]
public string TermsOfServiceId { get; set; }
}
/// <summary>
/// Extra data attached to the function.
/// </summary>
/// <remarks>
/// TdSharp internally uses this to find responses corresponding to each request initiated by the user.
/// </remarks>
[JsonProperty("@extra")]
public override string ExtraData { get; set; }

/// <summary>
/// Accepts Telegram terms of service
/// Terms of service identifier
/// </summary>
public static Task<Ok> AcceptTermsOfServiceAsync(
this IClient client, string termsOfServiceId = default)
[JsonConverter(typeof(Converter))]
[JsonProperty("terms_of_service_id")]
public string TermsOfServiceId { get; set; }
}

/// <summary>
/// Accepts Telegram terms of service
/// </summary>
public static Task<Ok> AcceptTermsOfServiceAsync(
this IClient client, string termsOfServiceId = default)
{
return client.ExecuteAsync(new AcceptTermsOfService
{
return client.ExecuteAsync(new AcceptTermsOfService
{
TermsOfServiceId = termsOfServiceId
});
}
TermsOfServiceId = termsOfServiceId
});
}
}
// REUSE-IgnoreEnd
Loading
Loading