mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-01-05 16:20:29 +01:00
xmldoc for RpcException possible errors and missing type descriptions
This commit is contained in:
parent
a197573258
commit
e7637011e1
2
.github/dev.yml
vendored
2
.github/dev.yml
vendored
|
|
@ -2,7 +2,7 @@ pr: none
|
|||
trigger:
|
||||
- master
|
||||
|
||||
name: 1.6.3-dev.$(Rev:r)
|
||||
name: 1.6.4-dev.$(Rev:r)
|
||||
|
||||
pool:
|
||||
vmImage: ubuntu-latest
|
||||
|
|
|
|||
|
|
@ -521,7 +521,7 @@ namespace WTelegram
|
|||
{
|
||||
404 => "Auth key not found",
|
||||
429 => "Transport flood",
|
||||
_ => ((HttpStatusCode)error_code).ToString(),
|
||||
_ => Enum.GetName(typeof(HttpStatusCode), error_code) ?? "Transport error"
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -475,11 +475,11 @@ namespace WTelegram
|
|||
if (currentJson == "TL.MTProto") return null;
|
||||
var url = ctor.id == null ? $"type/{ctor.type}" : $"constructor/{ctor.predicate}";
|
||||
var webDoc = ParseWebDoc(url);
|
||||
var summary = webDoc?.GetValueOrDefault(ctor.predicate).descr;
|
||||
var summary = webDoc?.GetValueOrDefault(ctor.id == null ? ctor.type : ctor.predicate).descr;
|
||||
var derived = webDoc?.GetValueOrDefault("Constructors").table;
|
||||
if (derived != null && !typeInfo.AsEnum)
|
||||
summary += $"\t\t<br/>Derived classes: {string.Join(", ", derived.Keys.Where(k => k != "<see langword=\"null\"/>"))}";
|
||||
summary += $"\t\t<br/>See <a href=\"https://corefork.telegram.org/{url}\"/>";
|
||||
summary += $"\t\t<para>Derived classes: {string.Join(", ", derived.Keys.Where(k => k != "<see langword=\"null\"/>"))}</para>";
|
||||
summary += $"\t\t<para>See <a href=\"https://corefork.telegram.org/{url}\"/></para>";
|
||||
sw.WriteLine($"{tabIndent}/// <summary>{summary.Trim()}</summary>");
|
||||
if (typeInfo.Nullable != null && ctor == typeInfo.MainClass)
|
||||
sw.WriteLine($"{tabIndent}/// <remarks>a <c>null</c> value means <a href=\"https://corefork.telegram.org/constructor/{typeInfo.Nullable.predicate}\">{typeInfo.Nullable.predicate}</a></remarks>");
|
||||
|
|
@ -493,7 +493,7 @@ namespace WTelegram
|
|||
var summary = webDoc?.GetValueOrDefault(method.method).descr;
|
||||
var paramDoc = webDoc?.GetValueOrDefault("Parameters").table;
|
||||
var excepDoc = webDoc?.GetValueOrDefault("Possible errors").table;
|
||||
summary += $"\t\t<br/>See <a href=\"https://corefork.telegram.org/method/{method.method}\"/>";
|
||||
summary += $"\t\t<para>See <a href=\"https://corefork.telegram.org/method/{method.method}\"/></para>";
|
||||
sw.WriteLine($"{tabIndent}/// <summary>{summary.Trim()}</summary>");
|
||||
if (paramDoc != null)
|
||||
foreach (var (name, doc) in paramDoc)
|
||||
|
|
@ -501,9 +501,10 @@ namespace WTelegram
|
|||
sw.WriteLine($"{tabIndent}/// <param name=\"{MapName(name)}\">{doc}</param>");
|
||||
if (typeInfos.GetValueOrDefault(method.type)?.Nullable is Constructor nullable)
|
||||
sw.WriteLine($"{tabIndent}/// <returns>a <c>null</c> value means <a href=\"https://corefork.telegram.org/constructor/{nullable.predicate}\">{nullable.predicate}</a></returns>");
|
||||
if (excepDoc != null)
|
||||
sw.WriteLine($"{tabIndent}/// <exception cref=\"RpcException\">Possible errors: {string.Join(",", new SortedSet<string>(excepDoc.Keys))} (<a href=\"https://corefork.telegram.org/method/{method.method}#possible-errors\">details</a>)</exception>");
|
||||
}
|
||||
|
||||
///
|
||||
private Dictionary<string, (string descr, Dictionary<string, string> table)> ParseWebDoc(string url)
|
||||
{
|
||||
var path = $@"{Environment.GetEnvironmentVariable("telegram-crawler")}\data\corefork.telegram.org\{url}";
|
||||
|
|
@ -545,6 +546,7 @@ namespace WTelegram
|
|||
index = row.IndexOf("<td", index);
|
||||
if (index >= 0)
|
||||
{
|
||||
//if (!value.StartsWith("<") && value != "!X") name = $"{name} {value}";
|
||||
index = row.IndexOf('>', index) + 1;
|
||||
value = row[index..row.IndexOf("</td", index)];
|
||||
}
|
||||
|
|
|
|||
2924
src/TL.Schema.cs
2924
src/TL.Schema.cs
File diff suppressed because it is too large
Load diff
104
src/TL.Secret.cs
104
src/TL.Secret.cs
|
|
@ -7,21 +7,21 @@ namespace TL
|
|||
using BinaryWriter = System.IO.BinaryWriter;
|
||||
using Client = WTelegram.Client;
|
||||
|
||||
/// <summary><br/>See <a href="https://corefork.telegram.org/type/DecryptedMessage"/></summary>
|
||||
/// <summary>Object describes the contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/type/DecryptedMessage"/></para></summary>
|
||||
public abstract partial class DecryptedMessageBase : ITLObject
|
||||
{
|
||||
/// <summary>Random message ID, assigned by the author of message.<br/>Must be equal to the ID passed to sending method.</summary>
|
||||
public abstract long RandomId { get; }
|
||||
}
|
||||
|
||||
/// <summary>Object describes media contents of an encrypted message. <br/>See <a href="https://corefork.telegram.org/type/DecryptedMessageMedia"/></summary>
|
||||
/// <summary>Object describes media contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/type/DecryptedMessageMedia"/></para></summary>
|
||||
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaEmpty">decryptedMessageMediaEmpty</a></remarks>
|
||||
public abstract partial class DecryptedMessageMedia : ITLObject { }
|
||||
|
||||
/// <summary>Object describes the action to which a service message is linked. <br/>See <a href="https://corefork.telegram.org/type/DecryptedMessageAction"/></summary>
|
||||
/// <summary>Object describes the action to which a service message is linked. <para>See <a href="https://corefork.telegram.org/type/DecryptedMessageAction"/></para></summary>
|
||||
public abstract partial class DecryptedMessageAction : ITLObject { }
|
||||
|
||||
/// <summary><br/>See <a href="https://corefork.telegram.org/type/FileLocation"/></summary>
|
||||
/// <summary>Indicates the location of a photo, will be deprecated soon <para>See <a href="https://corefork.telegram.org/type/FileLocation"/></para></summary>
|
||||
public abstract partial class FileLocationBase : ITLObject
|
||||
{
|
||||
/// <summary>Server volume</summary>
|
||||
|
|
@ -34,7 +34,7 @@ namespace TL
|
|||
|
||||
namespace Layer8
|
||||
{
|
||||
/// <summary>Contents of an encrypted message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessage"/></summary>
|
||||
/// <summary>Contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessage"/></para></summary>
|
||||
[TLDef(0x1F814F1F)]
|
||||
public partial class DecryptedMessage : DecryptedMessageBase
|
||||
{
|
||||
|
|
@ -49,7 +49,7 @@ namespace TL
|
|||
/// <summary>Random message ID, assigned by the author of message.<br/>Must be equal to the ID passed to sending method.</summary>
|
||||
public override long RandomId => random_id;
|
||||
}
|
||||
/// <summary>Contents of an encrypted service message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageService"/></summary>
|
||||
/// <summary>Contents of an encrypted service message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageService"/></para></summary>
|
||||
[TLDef(0xAA48327D)]
|
||||
public partial class DecryptedMessageService : DecryptedMessageBase
|
||||
{
|
||||
|
|
@ -63,7 +63,7 @@ namespace TL
|
|||
public override long RandomId => random_id;
|
||||
}
|
||||
|
||||
/// <summary>Photo attached to an encrypted message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaPhoto"/></summary>
|
||||
/// <summary>Photo attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaPhoto"/></para></summary>
|
||||
[TLDef(0x32798A8C)]
|
||||
public partial class DecryptedMessageMediaPhoto : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -84,7 +84,7 @@ namespace TL
|
|||
/// <summary>Initialization vector</summary>
|
||||
public byte[] iv;
|
||||
}
|
||||
/// <summary>Video attached to an encrypted message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaVideo"/></summary>
|
||||
/// <summary>Video attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaVideo"/></para></summary>
|
||||
[TLDef(0x4CEE6EF3)]
|
||||
public partial class DecryptedMessageMediaVideo : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -107,7 +107,7 @@ namespace TL
|
|||
/// <summary>Initialization vector</summary>
|
||||
public byte[] iv;
|
||||
}
|
||||
/// <summary>GeoPont attached to an encrypted message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaGeoPoint"/></summary>
|
||||
/// <summary>GeoPont attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaGeoPoint"/></para></summary>
|
||||
[TLDef(0x35480A59)]
|
||||
public partial class DecryptedMessageMediaGeoPoint : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -116,7 +116,7 @@ namespace TL
|
|||
/// <summary>Longtitude of point</summary>
|
||||
public double long_;
|
||||
}
|
||||
/// <summary>Contact attached to an encrypted message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaContact"/></summary>
|
||||
/// <summary>Contact attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaContact"/></para></summary>
|
||||
[TLDef(0x588A0A97)]
|
||||
public partial class DecryptedMessageMediaContact : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -129,7 +129,7 @@ namespace TL
|
|||
/// <summary>Telegram User ID of signed-up contact</summary>
|
||||
public int user_id;
|
||||
}
|
||||
/// <summary>Document attached to a message in a secret chat. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaDocument"/></summary>
|
||||
/// <summary>Document attached to a message in a secret chat. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaDocument"/></para></summary>
|
||||
[TLDef(0xB095434B)]
|
||||
public partial class DecryptedMessageMediaDocument : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -149,7 +149,7 @@ namespace TL
|
|||
/// <summary>Initialization</summary>
|
||||
public byte[] iv;
|
||||
}
|
||||
/// <summary>Audio file attached to a secret chat message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaAudio"/></summary>
|
||||
/// <summary>Audio file attached to a secret chat message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaAudio"/></para></summary>
|
||||
[TLDef(0x6080758F)]
|
||||
public partial class DecryptedMessageMediaAudio : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -163,55 +163,55 @@ namespace TL
|
|||
public byte[] iv;
|
||||
}
|
||||
|
||||
/// <summary>Setting of a message lifetime after reading. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionSetMessageTTL"/></summary>
|
||||
/// <summary>Setting of a message lifetime after reading. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionSetMessageTTL"/></para></summary>
|
||||
[TLDef(0xA1733AEC)]
|
||||
public partial class DecryptedMessageActionSetMessageTTL : DecryptedMessageAction
|
||||
{
|
||||
/// <summary>Lifetime in seconds</summary>
|
||||
public int ttl_seconds;
|
||||
}
|
||||
/// <summary>Messages marked as read. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionReadMessages"/></summary>
|
||||
/// <summary>Messages marked as read. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionReadMessages"/></para></summary>
|
||||
[TLDef(0x0C4F40BE)]
|
||||
public partial class DecryptedMessageActionReadMessages : DecryptedMessageAction
|
||||
{
|
||||
/// <summary>List of message IDs</summary>
|
||||
public long[] random_ids;
|
||||
}
|
||||
/// <summary>Deleted messages. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionDeleteMessages"/></summary>
|
||||
/// <summary>Deleted messages. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionDeleteMessages"/></para></summary>
|
||||
[TLDef(0x65614304)]
|
||||
public partial class DecryptedMessageActionDeleteMessages : DecryptedMessageAction
|
||||
{
|
||||
/// <summary>List of deleted message IDs</summary>
|
||||
public long[] random_ids;
|
||||
}
|
||||
/// <summary>A screenshot was taken. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionScreenshotMessages"/></summary>
|
||||
/// <summary>A screenshot was taken. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionScreenshotMessages"/></para></summary>
|
||||
[TLDef(0x8AC1F475)]
|
||||
public partial class DecryptedMessageActionScreenshotMessages : DecryptedMessageAction
|
||||
{
|
||||
/// <summary>List of affected message ids (that appeared on the screenshot)</summary>
|
||||
public long[] random_ids;
|
||||
}
|
||||
/// <summary>The entire message history has been deleted. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionFlushHistory"/></summary>
|
||||
/// <summary>The entire message history has been deleted. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionFlushHistory"/></para></summary>
|
||||
[TLDef(0x6719E45C)]
|
||||
public partial class DecryptedMessageActionFlushHistory : DecryptedMessageAction { }
|
||||
}
|
||||
|
||||
namespace Layer17
|
||||
{
|
||||
/// <summary>User is uploading a video. <br/>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadVideoAction"/></summary>
|
||||
/// <summary>User is uploading a video. <para>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadVideoAction"/></para></summary>
|
||||
[TLDef(0x92042FF7)]
|
||||
public partial class SendMessageUploadVideoAction : SendMessageAction { }
|
||||
/// <summary>User is uploading a voice message. <br/>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadAudioAction"/></summary>
|
||||
/// <summary>User is uploading a voice message. <para>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadAudioAction"/></para></summary>
|
||||
[TLDef(0xE6AC8A6F)]
|
||||
public partial class SendMessageUploadAudioAction : SendMessageAction { }
|
||||
/// <summary>User is uploading a photo. <br/>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadPhotoAction"/></summary>
|
||||
/// <summary>User is uploading a photo. <para>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadPhotoAction"/></para></summary>
|
||||
[TLDef(0x990A3C1A)]
|
||||
public partial class SendMessageUploadPhotoAction : SendMessageAction { }
|
||||
/// <summary>User is uploading a file. <br/>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadDocumentAction"/></summary>
|
||||
/// <summary>User is uploading a file. <para>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadDocumentAction"/></para></summary>
|
||||
[TLDef(0x8FAEE98E)]
|
||||
public partial class SendMessageUploadDocumentAction : SendMessageAction { }
|
||||
|
||||
/// <summary>Contents of an encrypted message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessage"/></summary>
|
||||
/// <summary>Contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessage"/></para></summary>
|
||||
[TLDef(0x204D3878)]
|
||||
public partial class DecryptedMessage : DecryptedMessageBase
|
||||
{
|
||||
|
|
@ -227,7 +227,7 @@ namespace TL
|
|||
/// <summary>Random message ID, assigned by the author of message.<br/>Must be equal to the ID passed to sending method.</summary>
|
||||
public override long RandomId => random_id;
|
||||
}
|
||||
/// <summary>Contents of an encrypted service message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageService"/></summary>
|
||||
/// <summary>Contents of an encrypted service message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageService"/></para></summary>
|
||||
[TLDef(0x73164160)]
|
||||
public partial class DecryptedMessageService : DecryptedMessageBase
|
||||
{
|
||||
|
|
@ -240,7 +240,7 @@ namespace TL
|
|||
public override long RandomId => random_id;
|
||||
}
|
||||
|
||||
/// <summary>Video attached to an encrypted message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaVideo"/></summary>
|
||||
/// <summary>Video attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaVideo"/></para></summary>
|
||||
[TLDef(0x524A415D)]
|
||||
public partial class DecryptedMessageMediaVideo : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -265,7 +265,7 @@ namespace TL
|
|||
/// <summary>Initialization vector</summary>
|
||||
public byte[] iv;
|
||||
}
|
||||
/// <summary>Audio file attached to a secret chat message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaAudio"/></summary>
|
||||
/// <summary>Audio file attached to a secret chat message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaAudio"/></para></summary>
|
||||
[TLDef(0x57E0A9CB)]
|
||||
public partial class DecryptedMessageMediaAudio : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -281,7 +281,7 @@ namespace TL
|
|||
public byte[] iv;
|
||||
}
|
||||
|
||||
/// <summary>Request for the other party in a Secret Chat to automatically resend a contiguous range of previously sent messages, as explained in <a href="https://corefork.telegram.org/api/end-to-end/seq_no">Sequence number is Secret Chats</a>. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionResend"/></summary>
|
||||
/// <summary>Request for the other party in a Secret Chat to automatically resend a contiguous range of previously sent messages, as explained in <a href="https://corefork.telegram.org/api/end-to-end/seq_no">Sequence number is Secret Chats</a>. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionResend"/></para></summary>
|
||||
[TLDef(0x511110B0)]
|
||||
public partial class DecryptedMessageActionResend : DecryptedMessageAction
|
||||
{
|
||||
|
|
@ -290,14 +290,14 @@ namespace TL
|
|||
/// <summary><c>out_seq_no</c> of the last message to be resent, with same parity.</summary>
|
||||
public int end_seq_no;
|
||||
}
|
||||
/// <summary>A notification stating the API layer that is used by the client. You should use your current layer and take notice of the layer used on the other side of a conversation when sending messages. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionNotifyLayer"/></summary>
|
||||
/// <summary>A notification stating the API layer that is used by the client. You should use your current layer and take notice of the layer used on the other side of a conversation when sending messages. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionNotifyLayer"/></para></summary>
|
||||
[TLDef(0xF3048883)]
|
||||
public partial class DecryptedMessageActionNotifyLayer : DecryptedMessageAction
|
||||
{
|
||||
/// <summary>Layer number, must be <strong>17</strong> or higher (this contructor was introduced in <a href="https://corefork.telegram.org/api/layers#layer-17">Layer 17</a>).</summary>
|
||||
public int layer;
|
||||
}
|
||||
/// <summary>User is preparing a message: typing, recording, uploading, etc. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionTyping"/></summary>
|
||||
/// <summary>User is preparing a message: typing, recording, uploading, etc. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionTyping"/></para></summary>
|
||||
[TLDef(0xCCB27641)]
|
||||
public partial class DecryptedMessageActionTyping : DecryptedMessageAction
|
||||
{
|
||||
|
|
@ -305,7 +305,7 @@ namespace TL
|
|||
public SendMessageAction action;
|
||||
}
|
||||
|
||||
/// <summary>Sets the layer number for the contents of an encrypted message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageLayer"/></summary>
|
||||
/// <summary>Sets the layer number for the contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageLayer"/></para></summary>
|
||||
[TLDef(0x1BE31789)]
|
||||
public partial class DecryptedMessageLayer : ITLObject
|
||||
{
|
||||
|
|
@ -324,7 +324,7 @@ namespace TL
|
|||
|
||||
namespace Layer45
|
||||
{
|
||||
/// <summary>Defines a sticker <br/>See <a href="https://corefork.telegram.org/constructor/documentAttributeSticker"/></summary>
|
||||
/// <summary>Defines a sticker <para>See <a href="https://corefork.telegram.org/constructor/documentAttributeSticker"/></para></summary>
|
||||
[TLDef(0x3A556302)]
|
||||
public partial class DocumentAttributeSticker : DocumentAttribute
|
||||
{
|
||||
|
|
@ -333,7 +333,7 @@ namespace TL
|
|||
/// <summary>Associated stickerset</summary>
|
||||
public InputStickerSet stickerset;
|
||||
}
|
||||
/// <summary>Represents an audio file <br/>See <a href="https://corefork.telegram.org/constructor/documentAttributeAudio"/></summary>
|
||||
/// <summary>Represents an audio file <para>See <a href="https://corefork.telegram.org/constructor/documentAttributeAudio"/></para></summary>
|
||||
[TLDef(0xDED218E0)]
|
||||
public partial class DocumentAttributeAudio : DocumentAttribute
|
||||
{
|
||||
|
|
@ -345,7 +345,7 @@ namespace TL
|
|||
public string performer;
|
||||
}
|
||||
|
||||
/// <summary>Contents of an encrypted message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessage"/></summary>
|
||||
/// <summary>Contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessage"/></para></summary>
|
||||
[TLDef(0x36B091DE)]
|
||||
public partial class DecryptedMessage : DecryptedMessageBase
|
||||
{
|
||||
|
|
@ -382,7 +382,7 @@ namespace TL
|
|||
public override long RandomId => random_id;
|
||||
}
|
||||
|
||||
/// <summary>Photo attached to an encrypted message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaPhoto"/></summary>
|
||||
/// <summary>Photo attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaPhoto"/></para></summary>
|
||||
[TLDef(0xF1FA8D78)]
|
||||
public partial class DecryptedMessageMediaPhoto : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -405,7 +405,7 @@ namespace TL
|
|||
/// <summary>Caption</summary>
|
||||
public string caption;
|
||||
}
|
||||
/// <summary>Video attached to an encrypted message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaVideo"/></summary>
|
||||
/// <summary>Video attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaVideo"/></para></summary>
|
||||
[TLDef(0x970C8C0E)]
|
||||
public partial class DecryptedMessageMediaVideo : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -432,7 +432,7 @@ namespace TL
|
|||
/// <summary>Caption</summary>
|
||||
public string caption;
|
||||
}
|
||||
/// <summary>Document attached to a message in a secret chat. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaDocument"/></summary>
|
||||
/// <summary>Document attached to a message in a secret chat. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaDocument"/></para></summary>
|
||||
[TLDef(0x7AFE8AE2)]
|
||||
public partial class DecryptedMessageMediaDocument : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -455,7 +455,7 @@ namespace TL
|
|||
/// <summary>Caption</summary>
|
||||
public string caption;
|
||||
}
|
||||
/// <summary>Venue <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaVenue"/></summary>
|
||||
/// <summary>Venue <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaVenue"/></para></summary>
|
||||
[TLDef(0x8A0DF56F)]
|
||||
public partial class DecryptedMessageMediaVenue : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -472,7 +472,7 @@ namespace TL
|
|||
/// <summary>Venue ID in the provider's database</summary>
|
||||
public string venue_id;
|
||||
}
|
||||
/// <summary>Webpage preview <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaWebPage"/></summary>
|
||||
/// <summary>Webpage preview <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaWebPage"/></para></summary>
|
||||
[TLDef(0xE50511D8)]
|
||||
public partial class DecryptedMessageMediaWebPage : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -483,7 +483,7 @@ namespace TL
|
|||
|
||||
namespace Layer73
|
||||
{
|
||||
/// <summary>Contents of an encrypted message. <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessage"/></summary>
|
||||
/// <summary>Contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessage"/></para></summary>
|
||||
[TLDef(0x91CC4674)]
|
||||
public partial class DecryptedMessage : DecryptedMessageBase
|
||||
{
|
||||
|
|
@ -527,7 +527,7 @@ namespace TL
|
|||
|
||||
namespace Layer20
|
||||
{
|
||||
/// <summary>Request rekeying, see <a href="https://corefork.telegram.org/api/end-to-end/pfs">rekeying process</a> <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionRequestKey"/></summary>
|
||||
/// <summary>Request rekeying, see <a href="https://corefork.telegram.org/api/end-to-end/pfs">rekeying process</a> <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionRequestKey"/></para></summary>
|
||||
[TLDef(0xF3C9611B)]
|
||||
public partial class DecryptedMessageActionRequestKey : DecryptedMessageAction
|
||||
{
|
||||
|
|
@ -536,7 +536,7 @@ namespace TL
|
|||
/// <summary>g_a, see <a href="https://corefork.telegram.org/api/end-to-end/pfs">rekeying process</a></summary>
|
||||
public byte[] g_a;
|
||||
}
|
||||
/// <summary>Accept new key <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionAcceptKey"/></summary>
|
||||
/// <summary>Accept new key <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionAcceptKey"/></para></summary>
|
||||
[TLDef(0x6FE1735B)]
|
||||
public partial class DecryptedMessageActionAcceptKey : DecryptedMessageAction
|
||||
{
|
||||
|
|
@ -547,14 +547,14 @@ namespace TL
|
|||
/// <summary>Key fingerprint, see <a href="https://corefork.telegram.org/api/end-to-end/pfs">rekeying process</a></summary>
|
||||
public long key_fingerprint;
|
||||
}
|
||||
/// <summary>Abort rekeying <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionAbortKey"/></summary>
|
||||
/// <summary>Abort rekeying <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionAbortKey"/></para></summary>
|
||||
[TLDef(0xDD05EC6B)]
|
||||
public partial class DecryptedMessageActionAbortKey : DecryptedMessageAction
|
||||
{
|
||||
/// <summary>Exchange ID</summary>
|
||||
public long exchange_id;
|
||||
}
|
||||
/// <summary>Commit new key, see <a href="https://corefork.telegram.org/api/end-to-end/pfs">rekeying process</a> <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionCommitKey"/></summary>
|
||||
/// <summary>Commit new key, see <a href="https://corefork.telegram.org/api/end-to-end/pfs">rekeying process</a> <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionCommitKey"/></para></summary>
|
||||
[TLDef(0xEC2E0B9B)]
|
||||
public partial class DecryptedMessageActionCommitKey : DecryptedMessageAction
|
||||
{
|
||||
|
|
@ -563,14 +563,14 @@ namespace TL
|
|||
/// <summary>Key fingerprint, see <a href="https://corefork.telegram.org/api/end-to-end/pfs">rekeying process</a></summary>
|
||||
public long key_fingerprint;
|
||||
}
|
||||
/// <summary>NOOP action <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionNoop"/></summary>
|
||||
/// <summary>NOOP action <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionNoop"/></para></summary>
|
||||
[TLDef(0xA82FDD63)]
|
||||
public partial class DecryptedMessageActionNoop : DecryptedMessageAction { }
|
||||
}
|
||||
|
||||
namespace Layer23
|
||||
{
|
||||
/// <summary>Image description. <br/>See <a href="https://corefork.telegram.org/constructor/photoSize"/></summary>
|
||||
/// <summary>Image description. <para>See <a href="https://corefork.telegram.org/constructor/photoSize"/></para></summary>
|
||||
[TLDef(0x77BFB61B)]
|
||||
public partial class PhotoSize : PhotoSizeBase
|
||||
{
|
||||
|
|
@ -587,7 +587,7 @@ namespace TL
|
|||
/// <summary>Thumbnail type</summary>
|
||||
public override string Type => type;
|
||||
}
|
||||
/// <summary>Description of an image and its content. <br/>See <a href="https://corefork.telegram.org/constructor/photoCachedSize"/></summary>
|
||||
/// <summary>Description of an image and its content. <para>See <a href="https://corefork.telegram.org/constructor/photoCachedSize"/></para></summary>
|
||||
[TLDef(0xE9A734FA)]
|
||||
public partial class PhotoCachedSize : PhotoSizeBase
|
||||
{
|
||||
|
|
@ -605,10 +605,10 @@ namespace TL
|
|||
public override string Type => type;
|
||||
}
|
||||
|
||||
/// <summary>Defines a sticker <br/>See <a href="https://corefork.telegram.org/constructor/documentAttributeSticker"/></summary>
|
||||
/// <summary>Defines a sticker <para>See <a href="https://corefork.telegram.org/constructor/documentAttributeSticker"/></para></summary>
|
||||
[TLDef(0xFB0A5727)]
|
||||
public partial class DocumentAttributeSticker : DocumentAttribute { }
|
||||
/// <summary>Defines a video <br/>See <a href="https://corefork.telegram.org/constructor/documentAttributeVideo"/></summary>
|
||||
/// <summary>Defines a video <para>See <a href="https://corefork.telegram.org/constructor/documentAttributeVideo"/></para></summary>
|
||||
[TLDef(0x5910CCCB)]
|
||||
public partial class DocumentAttributeVideo : DocumentAttribute
|
||||
{
|
||||
|
|
@ -619,7 +619,7 @@ namespace TL
|
|||
/// <summary>Video height</summary>
|
||||
public int h;
|
||||
}
|
||||
/// <summary>Represents an audio file <br/>See <a href="https://corefork.telegram.org/constructor/documentAttributeAudio"/></summary>
|
||||
/// <summary>Represents an audio file <para>See <a href="https://corefork.telegram.org/constructor/documentAttributeAudio"/></para></summary>
|
||||
[TLDef(0x051448E5)]
|
||||
public partial class DocumentAttributeAudio : DocumentAttribute
|
||||
{
|
||||
|
|
@ -627,7 +627,7 @@ namespace TL
|
|||
public int duration;
|
||||
}
|
||||
|
||||
/// <summary>Non-e2e documented forwarded from non-secret chat <br/>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaExternalDocument"/></summary>
|
||||
/// <summary>Non-e2e documented forwarded from non-secret chat <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaExternalDocument"/></para></summary>
|
||||
[TLDef(0xFA95B0DD)]
|
||||
public partial class DecryptedMessageMediaExternalDocument : DecryptedMessageMedia
|
||||
{
|
||||
|
|
@ -649,7 +649,7 @@ namespace TL
|
|||
public DocumentAttribute[] attributes;
|
||||
}
|
||||
|
||||
/// <summary>File is currently unavailable. <br/>See <a href="https://corefork.telegram.org/constructor/fileLocationUnavailable"/></summary>
|
||||
/// <summary>File is currently unavailable. <para>See <a href="https://corefork.telegram.org/constructor/fileLocationUnavailable"/></para></summary>
|
||||
[TLDef(0x7C596B46)]
|
||||
public partial class FileLocationUnavailable : FileLocationBase
|
||||
{
|
||||
|
|
@ -667,7 +667,7 @@ namespace TL
|
|||
/// <summary>Checksum to access the file</summary>
|
||||
public override long Secret => secret;
|
||||
}
|
||||
/// <summary>File location. <br/>See <a href="https://corefork.telegram.org/constructor/fileLocation"/></summary>
|
||||
/// <summary>File location. <para>See <a href="https://corefork.telegram.org/constructor/fileLocation"/></para></summary>
|
||||
[TLDef(0x53D69076)]
|
||||
public partial class FileLocation : FileLocationBase
|
||||
{
|
||||
|
|
@ -691,7 +691,7 @@ namespace TL
|
|||
|
||||
namespace Layer66
|
||||
{
|
||||
/// <summary>User is uploading a round video <br/>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadRoundAction"/></summary>
|
||||
/// <summary>User is uploading a round video <para>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadRoundAction"/></para></summary>
|
||||
[TLDef(0xBB718624)]
|
||||
public partial class SendMessageUploadRoundAction : SendMessageAction { }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue