diff --git a/README.md b/README.md index 06236a2..8993204 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index e35be0b..fdffe2d 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -991,6 +991,8 @@ namespace TL gigagroup = 0x4000000, /// Whether this channel or group is protected, thus does not allow forwarding messages from it noforwards = 0x8000000, + join_to_send = 0x10000000, + join_request = 0x20000000, } /// ID of the channel @@ -4578,6 +4580,7 @@ namespace TL cdn = 0x8, /// If set, this IP should be used when connecting through a proxy static_ = 0x10, + this_port_only = 0x20, /// Field has a value has_secret = 0x400, } @@ -4708,6 +4711,7 @@ namespace TL has_static_maps_provider = 0x1000, /// Whether pfs was used pfs_enabled = 0x2000, + force_try_ipv6 = 0x4000, } } @@ -8983,9 +8987,10 @@ namespace TL public abstract int Port { get; } } /// Identifies an endpoint that can be used to connect to the other user in a phone call See - [TLDef(0x9D4C17C0)] + [TLDef(0x9CC123C7)] public class PhoneConnection : PhoneConnectionBase { + public Flags flags; /// Endpoint ID public long id; /// IP address of endpoint @@ -8997,6 +9002,11 @@ namespace TL /// Our peer tag public byte[] peer_tag; + [Flags] public enum Flags : uint + { + tcp = 0x1, + } + /// Endpoint ID public override long ID => id; /// IP address of endpoint @@ -11913,6 +11923,7 @@ namespace TL has_reply_to_peer_id = 0x1, /// Field has a value has_reply_to_top_id = 0x2, + reply_to_scheduled = 0x4, } } @@ -12488,6 +12499,7 @@ namespace TL has_from_id = 0x8, /// Field has a value has_chat_invite = 0x10, + recommended = 0x20, } } diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs index ddab2b3..e55142b 100644 --- a/src/TL.SchemaFuncs.cs +++ b/src/TL.SchemaFuncs.cs @@ -4543,6 +4543,14 @@ namespace TL revoke = revoke, }); + /// See + public static Task Phone_SaveCallLog(this Client client, InputPhoneCall peer, InputFileBase file) + => client.Invoke(new Phone_SaveCallLog + { + peer = peer, + file = file, + }); + /// Get localization pack strings See Possible codes: 400 (details) /// Language pack name /// Language code @@ -8320,6 +8328,13 @@ namespace TL.Methods public bool revoke; } + [TLDef(0x41248786)] + public class Phone_SaveCallLog : IMethod + { + public InputPhoneCall peer; + public InputFileBase file; + } + [TLDef(0xF2F2330A)] public class Langpack_GetLangPack : IMethod { diff --git a/src/TL.Table.cs b/src/TL.Table.cs index 65628e5..b66997d 100644 --- a/src/TL.Table.cs +++ b/src/TL.Table.cs @@ -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),