mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2025-12-06 06:52:01 +01:00
Upgrade to layer 142: some various stuff
This commit is contained in:
parent
9753b2b385
commit
90ce527f31
|
|
@ -1,6 +1,6 @@
|
||||||
[](https://www.nuget.org/packages/WTelegramClient/)
|
[](https://www.nuget.org/packages/WTelegramClient/)
|
||||||
[](https://dev.azure.com/wiz0u/WTelegramClient/_build?definitionId=7)
|
[](https://dev.azure.com/wiz0u/WTelegramClient/_build?definitionId=7)
|
||||||
[](https://corefork.telegram.org/methods)
|
[](https://corefork.telegram.org/methods)
|
||||||
[](https://dev.azure.com/wiz0u/WTelegramClient/_artifacts/feed/WTelegramClient)
|
[](https://dev.azure.com/wiz0u/WTelegramClient/_artifacts/feed/WTelegramClient)
|
||||||
[](https://t.me/WTelegramClient)
|
[](https://t.me/WTelegramClient)
|
||||||
[](http://wizou.fr/donate.html)
|
[](http://wizou.fr/donate.html)
|
||||||
|
|
|
||||||
|
|
@ -991,6 +991,8 @@ namespace TL
|
||||||
gigagroup = 0x4000000,
|
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>
|
/// <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,
|
noforwards = 0x8000000,
|
||||||
|
join_to_send = 0x10000000,
|
||||||
|
join_request = 0x20000000,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>ID of the channel</summary>
|
/// <summary>ID of the channel</summary>
|
||||||
|
|
@ -4578,6 +4580,7 @@ namespace TL
|
||||||
cdn = 0x8,
|
cdn = 0x8,
|
||||||
/// <summary>If set, this IP should be used when connecting through a proxy</summary>
|
/// <summary>If set, this IP should be used when connecting through a proxy</summary>
|
||||||
static_ = 0x10,
|
static_ = 0x10,
|
||||||
|
this_port_only = 0x20,
|
||||||
/// <summary>Field <see cref="secret"/> has a value</summary>
|
/// <summary>Field <see cref="secret"/> has a value</summary>
|
||||||
has_secret = 0x400,
|
has_secret = 0x400,
|
||||||
}
|
}
|
||||||
|
|
@ -4708,6 +4711,7 @@ namespace TL
|
||||||
has_static_maps_provider = 0x1000,
|
has_static_maps_provider = 0x1000,
|
||||||
/// <summary>Whether <a href="https://corefork.telegram.org/api/pfs">pfs</a> was used</summary>
|
/// <summary>Whether <a href="https://corefork.telegram.org/api/pfs">pfs</a> was used</summary>
|
||||||
pfs_enabled = 0x2000,
|
pfs_enabled = 0x2000,
|
||||||
|
force_try_ipv6 = 0x4000,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -8983,9 +8987,10 @@ namespace TL
|
||||||
public abstract int Port { get; }
|
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>
|
/// <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 class PhoneConnection : PhoneConnectionBase
|
||||||
{
|
{
|
||||||
|
public Flags flags;
|
||||||
/// <summary>Endpoint ID</summary>
|
/// <summary>Endpoint ID</summary>
|
||||||
public long id;
|
public long id;
|
||||||
/// <summary>IP address of endpoint</summary>
|
/// <summary>IP address of endpoint</summary>
|
||||||
|
|
@ -8997,6 +9002,11 @@ namespace TL
|
||||||
/// <summary>Our peer tag</summary>
|
/// <summary>Our peer tag</summary>
|
||||||
public byte[] peer_tag;
|
public byte[] peer_tag;
|
||||||
|
|
||||||
|
[Flags] public enum Flags : uint
|
||||||
|
{
|
||||||
|
tcp = 0x1,
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>Endpoint ID</summary>
|
/// <summary>Endpoint ID</summary>
|
||||||
public override long ID => id;
|
public override long ID => id;
|
||||||
/// <summary>IP address of endpoint</summary>
|
/// <summary>IP address of endpoint</summary>
|
||||||
|
|
@ -11913,6 +11923,7 @@ namespace TL
|
||||||
has_reply_to_peer_id = 0x1,
|
has_reply_to_peer_id = 0x1,
|
||||||
/// <summary>Field <see cref="reply_to_top_id"/> has a value</summary>
|
/// <summary>Field <see cref="reply_to_top_id"/> has a value</summary>
|
||||||
has_reply_to_top_id = 0x2,
|
has_reply_to_top_id = 0x2,
|
||||||
|
reply_to_scheduled = 0x4,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -12488,6 +12499,7 @@ namespace TL
|
||||||
has_from_id = 0x8,
|
has_from_id = 0x8,
|
||||||
/// <summary>Field <see cref="chat_invite"/> has a value</summary>
|
/// <summary>Field <see cref="chat_invite"/> has a value</summary>
|
||||||
has_chat_invite = 0x10,
|
has_chat_invite = 0x10,
|
||||||
|
recommended = 0x20,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4543,6 +4543,14 @@ namespace TL
|
||||||
revoke = revoke,
|
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>
|
/// <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_pack">Language pack name</param>
|
||||||
/// <param name="lang_code">Language code</param>
|
/// <param name="lang_code">Language code</param>
|
||||||
|
|
@ -8320,6 +8328,13 @@ namespace TL.Methods
|
||||||
public bool revoke;
|
public bool revoke;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[TLDef(0x41248786)]
|
||||||
|
public class Phone_SaveCallLog : IMethod<bool>
|
||||||
|
{
|
||||||
|
public InputPhoneCall peer;
|
||||||
|
public InputFileBase file;
|
||||||
|
}
|
||||||
|
|
||||||
[TLDef(0xF2F2330A)]
|
[TLDef(0xF2F2330A)]
|
||||||
public class Langpack_GetLangPack : IMethod<LangPackDifference>
|
public class Langpack_GetLangPack : IMethod<LangPackDifference>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ namespace TL
|
||||||
{
|
{
|
||||||
public static class Layer
|
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 VectorCtor = 0x1CB5C415;
|
||||||
internal const uint NullCtor = 0x56730BCC;
|
internal const uint NullCtor = 0x56730BCC;
|
||||||
internal const uint RpcResultCtor = 0xF35C6D01;
|
internal const uint RpcResultCtor = 0xF35C6D01;
|
||||||
|
|
@ -680,7 +680,7 @@ namespace TL
|
||||||
[0x3660C311] = typeof(PhoneCallAccepted),
|
[0x3660C311] = typeof(PhoneCallAccepted),
|
||||||
[0x967F7C67] = typeof(PhoneCall),
|
[0x967F7C67] = typeof(PhoneCall),
|
||||||
[0x50CA4DE1] = typeof(PhoneCallDiscarded),
|
[0x50CA4DE1] = typeof(PhoneCallDiscarded),
|
||||||
[0x9D4C17C0] = typeof(PhoneConnection),
|
[0x9CC123C7] = typeof(PhoneConnection),
|
||||||
[0x635FE375] = typeof(PhoneConnectionWebrtc),
|
[0x635FE375] = typeof(PhoneConnectionWebrtc),
|
||||||
[0xFC878FC8] = typeof(PhoneCallProtocol),
|
[0xFC878FC8] = typeof(PhoneCallProtocol),
|
||||||
[0xEC82E140] = typeof(Phone_PhoneCall),
|
[0xEC82E140] = typeof(Phone_PhoneCall),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue