Upgrade to layer 142: some various stuff

This commit is contained in:
Wizou 2022-05-15 00:36:28 +02:00
parent 9753b2b385
commit 90ce527f31
4 changed files with 31 additions and 4 deletions

View file

@ -1,6 +1,6 @@
[![NuGet version](https://img.shields.io/nuget/v/WTelegramClient)](https://www.nuget.org/packages/WTelegramClient/)
[![Build Status](https://img.shields.io/azure-devops/build/wiz0u/WTelegramClient/7)](https://dev.azure.com/wiz0u/WTelegramClient/_build?definitionId=7)
[![API Layer](https://img.shields.io/badge/API_Layer-140-blueviolet)](https://corefork.telegram.org/methods)
[![API Layer](https://img.shields.io/badge/API_Layer-142-blueviolet)](https://corefork.telegram.org/methods)
[![dev nuget](https://img.shields.io/badge/dynamic/json?color=ffc040&label=dev%20nuget&query=%24.versions%5B0%5D&url=https%3A%2F%2Fpkgs.dev.azure.com%2Fwiz0u%2F81bd92b7-0bb9-4701-b426-09090b27e037%2F_packaging%2F46ce0497-7803-4bd4-8c6c-030583e7c371%2Fnuget%2Fv3%2Fflat2%2Fwtelegramclient%2Findex.json)](https://dev.azure.com/wiz0u/WTelegramClient/_artifacts/feed/WTelegramClient)
[![Support Chat](https://img.shields.io/badge/Chat_with_us-on_Telegram-0088cc)](https://t.me/WTelegramClient)
[![Donate](https://img.shields.io/badge/Help_this_project:-Donate-ff4444)](http://wizou.fr/donate.html)

View file

@ -991,6 +991,8 @@ namespace TL
gigagroup = 0x4000000,
/// <summary>Whether this channel or group is <a href="https://telegram.org/blog/protected-content-delete-by-date-and-more">protected</a>, thus does not allow forwarding messages from it</summary>
noforwards = 0x8000000,
join_to_send = 0x10000000,
join_request = 0x20000000,
}
/// <summary>ID of the channel</summary>
@ -4578,6 +4580,7 @@ namespace TL
cdn = 0x8,
/// <summary>If set, this IP should be used when connecting through a proxy</summary>
static_ = 0x10,
this_port_only = 0x20,
/// <summary>Field <see cref="secret"/> has a value</summary>
has_secret = 0x400,
}
@ -4708,6 +4711,7 @@ namespace TL
has_static_maps_provider = 0x1000,
/// <summary>Whether <a href="https://corefork.telegram.org/api/pfs">pfs</a> was used</summary>
pfs_enabled = 0x2000,
force_try_ipv6 = 0x4000,
}
}
@ -8983,9 +8987,10 @@ namespace TL
public abstract int Port { get; }
}
/// <summary>Identifies an endpoint that can be used to connect to the other user in a phone call <para>See <a href="https://corefork.telegram.org/constructor/phoneConnection"/></para></summary>
[TLDef(0x9D4C17C0)]
[TLDef(0x9CC123C7)]
public class PhoneConnection : PhoneConnectionBase
{
public Flags flags;
/// <summary>Endpoint ID</summary>
public long id;
/// <summary>IP address of endpoint</summary>
@ -8997,6 +9002,11 @@ namespace TL
/// <summary>Our peer tag</summary>
public byte[] peer_tag;
[Flags] public enum Flags : uint
{
tcp = 0x1,
}
/// <summary>Endpoint ID</summary>
public override long ID => id;
/// <summary>IP address of endpoint</summary>
@ -11913,6 +11923,7 @@ namespace TL
has_reply_to_peer_id = 0x1,
/// <summary>Field <see cref="reply_to_top_id"/> has a value</summary>
has_reply_to_top_id = 0x2,
reply_to_scheduled = 0x4,
}
}
@ -12488,6 +12499,7 @@ namespace TL
has_from_id = 0x8,
/// <summary>Field <see cref="chat_invite"/> has a value</summary>
has_chat_invite = 0x10,
recommended = 0x20,
}
}

View file

@ -4543,6 +4543,14 @@ namespace TL
revoke = revoke,
});
/// <summary><para>See <a href="https://corefork.telegram.org/method/phone.saveCallLog"/></para></summary>
public static Task<bool> Phone_SaveCallLog(this Client client, InputPhoneCall peer, InputFileBase file)
=> client.Invoke(new Phone_SaveCallLog
{
peer = peer,
file = file,
});
/// <summary>Get localization pack strings <para>See <a href="https://corefork.telegram.org/method/langpack.getLangPack"/></para> <para>Possible <see cref="RpcException"/> codes: 400 (<a href="https://corefork.telegram.org/method/langpack.getLangPack#possible-errors">details</a>)</para></summary>
/// <param name="lang_pack">Language pack name</param>
/// <param name="lang_code">Language code</param>
@ -8320,6 +8328,13 @@ namespace TL.Methods
public bool revoke;
}
[TLDef(0x41248786)]
public class Phone_SaveCallLog : IMethod<bool>
{
public InputPhoneCall peer;
public InputFileBase file;
}
[TLDef(0xF2F2330A)]
public class Langpack_GetLangPack : IMethod<LangPackDifference>
{

View file

@ -6,7 +6,7 @@ namespace TL
{
public static class Layer
{
public const int Version = 140; // fetched 01/05/2022 19:32:46
public const int Version = 142; // fetched 14/05/2022 22:26:18
internal const uint VectorCtor = 0x1CB5C415;
internal const uint NullCtor = 0x56730BCC;
internal const uint RpcResultCtor = 0xF35C6D01;
@ -680,7 +680,7 @@ namespace TL
[0x3660C311] = typeof(PhoneCallAccepted),
[0x967F7C67] = typeof(PhoneCall),
[0x50CA4DE1] = typeof(PhoneCallDiscarded),
[0x9D4C17C0] = typeof(PhoneConnection),
[0x9CC123C7] = typeof(PhoneConnection),
[0x635FE375] = typeof(PhoneConnectionWebrtc),
[0xFC878FC8] = typeof(PhoneCallProtocol),
[0xEC82E140] = typeof(Phone_PhoneCall),