2022-02-23 23:50:52 +01:00
using System ;
2021-08-04 00:40:09 +02:00
namespace TL
{
2021-11-03 18:20:54 +01:00
/// <summary>Object describes the contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/type/DecryptedMessage"/></para></summary>
2021-11-10 17:26:40 +01:00
public abstract class DecryptedMessageBase : IObject
2021-10-23 03:36:46 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Random message ID, assigned by the author of message.<br/>Must be equal to the ID passed to sending method.</summary>
2021-10-23 03:36:46 +02:00
public abstract long RandomId { get ; }
}
2021-09-26 05:07:17 +02:00
2021-11-03 18:20:54 +01:00
/// <summary>Object describes media contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/type/DecryptedMessageMedia"/></para></summary>
2021-11-03 03:53:48 +01:00
/// <remarks>a <c>null</c> value means <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaEmpty">decryptedMessageMediaEmpty</a></remarks>
2021-11-10 17:26:40 +01:00
public abstract class DecryptedMessageMedia : IObject { }
2021-09-26 05:07:17 +02:00
2021-11-03 18:20:54 +01:00
/// <summary>Object describes the action to which a service message is linked. <para>See <a href="https://corefork.telegram.org/type/DecryptedMessageAction"/></para></summary>
2021-11-10 17:26:40 +01:00
public abstract class DecryptedMessageAction : IObject { }
2021-09-26 05:07:17 +02:00
2021-11-03 18:20:54 +01:00
/// <summary>Indicates the location of a photo, will be deprecated soon <para>See <a href="https://corefork.telegram.org/type/FileLocation"/></para></summary>
2021-11-10 17:26:40 +01:00
public abstract class FileLocationBase : IObject
2021-10-23 03:36:46 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Server volume</summary>
2021-10-23 03:36:46 +02:00
public abstract long VolumeId { get ; }
2021-11-03 03:53:48 +01:00
/// <summary>File ID</summary>
2021-10-23 03:36:46 +02:00
public abstract int LocalId { get ; }
2021-11-03 03:53:48 +01:00
/// <summary>Checksum to access the file</summary>
2021-10-23 03:36:46 +02:00
public abstract long Secret { get ; }
}
2021-09-26 05:07:17 +02:00
2021-08-07 03:44:11 +02:00
namespace Layer8
2021-08-04 00:40:09 +02:00
{
2021-11-03 18:20:54 +01:00
/// <summary>Contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessage"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x1F814F1F)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessage : DecryptedMessageBase
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Random message ID, assigned by the author of message.<br/>Must be equal to the ID passed to sending method.</summary>
2021-08-07 03:44:11 +02:00
public long random_id ;
public byte [ ] random_bytes ;
2021-11-03 03:53:48 +01:00
/// <summary>Message text</summary>
2021-08-07 03:44:11 +02:00
public string message ;
2021-11-03 03:53:48 +01:00
/// <summary>Media content</summary>
2021-08-07 03:44:11 +02:00
public DecryptedMessageMedia media ;
2021-10-23 03:36:46 +02:00
2021-11-03 03:53:48 +01:00
/// <summary>Random message ID, assigned by the author of message.<br/>Must be equal to the ID passed to sending method.</summary>
2021-10-23 03:36:46 +02:00
public override long RandomId = > random_id ;
2021-08-07 03:44:11 +02:00
}
2021-11-03 18:20:54 +01:00
/// <summary>Contents of an encrypted service message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageService"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0xAA48327D)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageService : DecryptedMessageBase
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Random message ID, assigned by the message author.<br/>Must be equal to the ID passed to the sending method.</summary>
2021-08-07 03:44:11 +02:00
public long random_id ;
public byte [ ] random_bytes ;
2021-11-03 03:53:48 +01:00
/// <summary>Action relevant to the service message</summary>
2021-08-07 03:44:11 +02:00
public DecryptedMessageAction action ;
2021-10-23 03:36:46 +02:00
2021-11-03 03:53:48 +01:00
/// <summary>Random message ID, assigned by the message author.<br/>Must be equal to the ID passed to the sending method.</summary>
2021-10-23 03:36:46 +02:00
public override long RandomId = > random_id ;
2021-08-07 03:44:11 +02:00
}
2021-08-04 00:40:09 +02:00
2021-11-03 18:20:54 +01:00
/// <summary>Photo attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaPhoto"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x32798A8C)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaPhoto : DecryptedMessageMedia
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Content of thumbnail file (JPEGfile, quality 55, set in a square 90x90)</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] thumb ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail width</summary>
2021-08-07 03:44:11 +02:00
public int thumb_w ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail height</summary>
2021-08-07 03:44:11 +02:00
public int thumb_h ;
2021-11-03 03:53:48 +01:00
/// <summary>Photo width</summary>
2021-08-07 03:44:11 +02:00
public int w ;
2021-11-03 03:53:48 +01:00
/// <summary>Photo height</summary>
2021-08-07 03:44:11 +02:00
public int h ;
2021-11-03 03:53:48 +01:00
/// <summary>Size of the photo in bytes</summary>
2021-08-07 03:44:11 +02:00
public int size ;
2021-11-03 03:53:48 +01:00
/// <summary>Key to decrypt an attached file with a full version</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] key ;
2021-11-03 03:53:48 +01:00
/// <summary>Initialization vector</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] iv ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Video attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaVideo"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x4CEE6EF3)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaVideo : DecryptedMessageMedia
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Content of thumbnail file (JPEG file, quality 55, set in a square 90x90)</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] thumb ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail width</summary>
2021-08-07 03:44:11 +02:00
public int thumb_w ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail height</summary>
2021-08-07 03:44:11 +02:00
public int thumb_h ;
2021-11-03 03:53:48 +01:00
/// <summary>Duration of video in seconds</summary>
2021-08-07 03:44:11 +02:00
public int duration ;
2021-11-03 03:53:48 +01:00
/// <summary>Image width</summary>
2021-08-07 03:44:11 +02:00
public int w ;
2021-11-03 03:53:48 +01:00
/// <summary>Image height</summary>
2021-08-07 03:44:11 +02:00
public int h ;
2021-11-03 03:53:48 +01:00
/// <summary>File size</summary>
2021-08-07 03:44:11 +02:00
public int size ;
2021-11-03 03:53:48 +01:00
/// <summary>Key to decrypt the attached video file</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] key ;
2021-11-03 03:53:48 +01:00
/// <summary>Initialization vector</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] iv ;
}
2021-11-03 18:20:54 +01:00
/// <summary>GeoPont attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaGeoPoint"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x35480A59)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaGeoPoint : DecryptedMessageMedia
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Latitude of point</summary>
2021-08-07 03:44:11 +02:00
public double lat ;
2021-11-03 03:53:48 +01:00
/// <summary>Longtitude of point</summary>
2022-01-29 16:47:47 +01:00
public double lon ;
2021-08-07 03:44:11 +02:00
}
2021-11-03 18:20:54 +01:00
/// <summary>Contact attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaContact"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x588A0A97)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaContact : DecryptedMessageMedia
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Phone number</summary>
2021-08-07 03:44:11 +02:00
public string phone_number ;
2021-11-03 03:53:48 +01:00
/// <summary>Contact's first name</summary>
2021-08-07 03:44:11 +02:00
public string first_name ;
2021-11-03 03:53:48 +01:00
/// <summary>Contact's last name</summary>
2021-08-07 03:44:11 +02:00
public string last_name ;
2021-11-03 03:53:48 +01:00
/// <summary>Telegram User ID of signed-up contact</summary>
2021-08-07 03:44:11 +02:00
public int user_id ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Document attached to a message in a secret chat. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaDocument"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0xB095434B)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaDocument : DecryptedMessageMedia
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail-file contents (JPEG-file, quality 55, set in a 90x90 square)</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] thumb ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail width</summary>
2021-08-07 03:44:11 +02:00
public int thumb_w ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail height</summary>
2021-08-07 03:44:11 +02:00
public int thumb_h ;
public string file_name ;
2021-11-03 03:53:48 +01:00
/// <summary>File MIME-type</summary>
2021-08-07 03:44:11 +02:00
public string mime_type ;
2021-11-03 03:53:48 +01:00
/// <summary>Document size</summary>
2021-08-07 03:44:11 +02:00
public int size ;
2021-11-03 03:53:48 +01:00
/// <summary>Key to decrypt the attached document file</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] key ;
2021-11-03 03:53:48 +01:00
/// <summary>Initialization</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] iv ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Audio file attached to a secret chat message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaAudio"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x6080758F)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaAudio : DecryptedMessageMedia
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Audio duration in seconds</summary>
2021-08-07 03:44:11 +02:00
public int duration ;
2021-11-03 03:53:48 +01:00
/// <summary>File size</summary>
2021-08-07 03:44:11 +02:00
public int size ;
2021-11-03 03:53:48 +01:00
/// <summary>Key to decrypt the attached media file</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] key ;
2021-11-03 03:53:48 +01:00
/// <summary>Initialization vector</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] iv ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Setting of a message lifetime after reading. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionSetMessageTTL"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0xA1733AEC)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageActionSetMessageTTL : DecryptedMessageAction
2021-11-03 03:53:48 +01:00
{
/// <summary>Lifetime in seconds</summary>
public int ttl_seconds ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Messages marked as read. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionReadMessages"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x0C4F40BE)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageActionReadMessages : DecryptedMessageAction
2021-11-03 03:53:48 +01:00
{
/// <summary>List of message IDs</summary>
public long [ ] random_ids ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Deleted messages. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionDeleteMessages"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x65614304)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageActionDeleteMessages : DecryptedMessageAction
2021-11-03 03:53:48 +01:00
{
/// <summary>List of deleted message IDs</summary>
public long [ ] random_ids ;
}
2021-11-03 18:20:54 +01:00
/// <summary>A screenshot was taken. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionScreenshotMessages"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x8AC1F475)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageActionScreenshotMessages : DecryptedMessageAction
2021-11-03 03:53:48 +01:00
{
/// <summary>List of affected message ids (that appeared on the screenshot)</summary>
public long [ ] random_ids ;
}
2021-11-03 18:20:54 +01:00
/// <summary>The entire message history has been deleted. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionFlushHistory"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x6719E45C)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageActionFlushHistory : DecryptedMessageAction { }
2021-08-04 00:40:09 +02:00
}
2021-08-07 03:44:11 +02:00
namespace Layer17
2021-08-04 00:40:09 +02:00
{
2021-11-03 18:20:54 +01:00
/// <summary>User is uploading a video. <para>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadVideoAction"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0x92042FF7)]
2021-11-10 17:26:40 +01:00
public class SendMessageUploadVideoAction : SendMessageAction { }
2021-11-03 18:20:54 +01:00
/// <summary>User is uploading a voice message. <para>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadAudioAction"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0xE6AC8A6F)]
2021-11-10 17:26:40 +01:00
public class SendMessageUploadAudioAction : SendMessageAction { }
2021-11-03 18:20:54 +01:00
/// <summary>User is uploading a photo. <para>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadPhotoAction"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0x990A3C1A)]
2021-11-10 17:26:40 +01:00
public class SendMessageUploadPhotoAction : SendMessageAction { }
2021-11-03 18:20:54 +01:00
/// <summary>User is uploading a file. <para>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadDocumentAction"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0x8FAEE98E)]
2021-11-10 17:26:40 +01:00
public class SendMessageUploadDocumentAction : SendMessageAction { }
2021-09-26 05:07:17 +02:00
2021-11-03 18:20:54 +01:00
/// <summary>Contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessage"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x204D3878)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessage : DecryptedMessageBase
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Random message ID, assigned by the author of message.<br/>Must be equal to the ID passed to sending method.</summary>
2021-08-07 03:44:11 +02:00
public long random_id ;
2021-11-03 03:53:48 +01:00
/// <summary>Message lifetime. Has higher priority than <see cref="Layer8.DecryptedMessageActionSetMessageTTL"/>.<br/>Parameter added in <a href="https://corefork.telegram.org/api/layers#layer-17">Layer 17</a>.</summary>
2021-08-07 03:44:11 +02:00
public int ttl ;
2021-11-03 03:53:48 +01:00
/// <summary>Message text</summary>
2021-08-07 03:44:11 +02:00
public string message ;
2021-11-03 03:53:48 +01:00
/// <summary>Media content</summary>
2021-08-07 03:44:11 +02:00
public DecryptedMessageMedia media ;
2021-10-23 03:36:46 +02:00
2021-11-03 03:53:48 +01:00
/// <summary>Random message ID, assigned by the author of message.<br/>Must be equal to the ID passed to sending method.</summary>
2021-10-23 03:36:46 +02:00
public override long RandomId = > random_id ;
2021-08-07 03:44:11 +02:00
}
2021-11-03 18:20:54 +01:00
/// <summary>Contents of an encrypted service message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageService"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x73164160)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageService : DecryptedMessageBase
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Random message ID, assigned by the message author.<br/>Must be equal to the ID passed to the sending method.</summary>
2021-08-07 03:44:11 +02:00
public long random_id ;
2021-11-03 03:53:48 +01:00
/// <summary>Action relevant to the service message</summary>
2021-08-07 03:44:11 +02:00
public DecryptedMessageAction action ;
2021-10-23 03:36:46 +02:00
2021-11-03 03:53:48 +01:00
/// <summary>Random message ID, assigned by the message author.<br/>Must be equal to the ID passed to the sending method.</summary>
2021-10-23 03:36:46 +02:00
public override long RandomId = > random_id ;
2021-08-07 03:44:11 +02:00
}
2021-11-03 18:20:54 +01:00
/// <summary>Video attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaVideo"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x524A415D)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaVideo : DecryptedMessageMedia
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Content of thumbnail file (JPEG file, quality 55, set in a square 90x90)</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] thumb ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail width</summary>
2021-08-07 03:44:11 +02:00
public int thumb_w ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail height</summary>
2021-08-07 03:44:11 +02:00
public int thumb_h ;
2021-11-03 03:53:48 +01:00
/// <summary>Duration of video in seconds</summary>
2021-08-07 03:44:11 +02:00
public int duration ;
2021-11-03 03:53:48 +01:00
/// <summary>MIME-type of the video file<br/>Parameter added in <a href="https://corefork.telegram.org/api/layers#layer-17">Layer 17</a>.</summary>
2021-08-07 03:44:11 +02:00
public string mime_type ;
2021-11-03 03:53:48 +01:00
/// <summary>Image width</summary>
2021-08-07 03:44:11 +02:00
public int w ;
2021-11-03 03:53:48 +01:00
/// <summary>Image height</summary>
2021-08-07 03:44:11 +02:00
public int h ;
2021-11-03 03:53:48 +01:00
/// <summary>File size</summary>
2021-08-07 03:44:11 +02:00
public int size ;
2021-11-03 03:53:48 +01:00
/// <summary>Key to decrypt the attached video file</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] key ;
2021-11-03 03:53:48 +01:00
/// <summary>Initialization vector</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] iv ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Audio file attached to a secret chat message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaAudio"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x57E0A9CB)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaAudio : DecryptedMessageMedia
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Audio duration in seconds</summary>
2021-08-07 03:44:11 +02:00
public int duration ;
2021-11-03 03:53:48 +01:00
/// <summary>MIME-type of the audio file<br/>Parameter added in <a href="https://corefork.telegram.org/api/layers#layer-13">Layer 13</a>.</summary>
2021-08-07 03:44:11 +02:00
public string mime_type ;
2021-11-03 03:53:48 +01:00
/// <summary>File size</summary>
2021-08-07 03:44:11 +02:00
public int size ;
2021-11-03 03:53:48 +01:00
/// <summary>Key to decrypt the attached media file</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] key ;
2021-11-03 03:53:48 +01:00
/// <summary>Initialization vector</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] iv ;
}
2021-11-03 18:20:54 +01:00
/// <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>
2021-08-12 11:01:15 +02:00
[TLDef(0x511110B0)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageActionResend : DecryptedMessageAction
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary><c>out_seq_no</c> of the first message to be resent, with correct parity</summary>
2021-08-07 03:44:11 +02:00
public int start_seq_no ;
2021-11-03 03:53:48 +01:00
/// <summary><c>out_seq_no</c> of the last message to be resent, with same parity.</summary>
2021-08-07 03:44:11 +02:00
public int end_seq_no ;
}
2021-11-03 18:20:54 +01:00
/// <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>
2021-08-12 11:01:15 +02:00
[TLDef(0xF3048883)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageActionNotifyLayer : DecryptedMessageAction
2021-11-03 03:53:48 +01:00
{
/// <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 ;
}
2021-11-03 18:20:54 +01:00
/// <summary>User is preparing a message: typing, recording, uploading, etc. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionTyping"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0xCCB27641)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageActionTyping : DecryptedMessageAction
2021-11-03 03:53:48 +01:00
{
/// <summary>Type of action</summary>
public SendMessageAction action ;
}
2021-08-07 03:44:11 +02:00
2021-11-03 18:20:54 +01:00
/// <summary>Sets the layer number for the contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageLayer"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0x1BE31789)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageLayer : IObject
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Set of random bytes to prevent content recognition in short encrypted messages.<br/>Clients are required to check that there are at least 15 random bytes included in each message. Messages with less than 15 random bytes must be ignored.<br/>Parameter moved here from <see cref="DecryptedMessage"/> in <a href="https://corefork.telegram.org/api/layers#layer-17">Layer 17</a>.</summary>
2021-09-26 05:07:17 +02:00
public byte [ ] random_bytes ;
2021-11-03 03:53:48 +01:00
/// <summary>Layer number. Mimimal value - <strong>17</strong> (the layer in which the constructor was added).</summary>
2021-09-26 05:07:17 +02:00
public int layer ;
2021-11-03 03:53:48 +01:00
/// <summary>2x the number of messages in the sender's inbox (including deleted and service messages), incremented by 1 if current user was not the chat creator<br/>Parameter added in <a href="https://corefork.telegram.org/api/layers#layer-17">Layer 17</a>.</summary>
2021-09-26 05:07:17 +02:00
public int in_seq_no ;
2021-11-03 03:53:48 +01:00
/// <summary>2x the number of messages in the recipient's inbox (including deleted and service messages), incremented by 1 if current user was the chat creator<br/>Parameter added in <a href="https://corefork.telegram.org/api/layers#layer-17">Layer 17</a>.</summary>
2021-09-26 05:07:17 +02:00
public int out_seq_no ;
2021-11-03 03:53:48 +01:00
/// <summary>The content of message itself</summary>
2021-09-26 05:07:17 +02:00
public DecryptedMessageBase message ;
2021-08-07 03:44:11 +02:00
}
2021-08-04 00:40:09 +02:00
}
2021-08-07 03:44:11 +02:00
2021-09-26 05:07:17 +02:00
namespace Layer45
2021-08-04 00:40:09 +02:00
{
2021-11-03 18:20:54 +01:00
/// <summary>Defines a sticker <para>See <a href="https://corefork.telegram.org/constructor/documentAttributeSticker"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0x3A556302)]
2021-11-10 17:26:40 +01:00
public class DocumentAttributeSticker : DocumentAttribute
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Alternative emoji representation of sticker</summary>
2021-09-26 05:07:17 +02:00
public string alt ;
2021-11-03 03:53:48 +01:00
/// <summary>Associated stickerset</summary>
2021-09-26 05:07:17 +02:00
public InputStickerSet stickerset ;
2021-08-07 03:44:11 +02:00
}
2021-11-03 18:20:54 +01:00
/// <summary>Represents an audio file <para>See <a href="https://corefork.telegram.org/constructor/documentAttributeAudio"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0xDED218E0)]
2021-11-10 17:26:40 +01:00
public class DocumentAttributeAudio : DocumentAttribute
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Duration in seconds</summary>
2021-09-26 05:07:17 +02:00
public int duration ;
2021-11-03 03:53:48 +01:00
/// <summary>Name of song</summary>
2021-09-26 05:07:17 +02:00
public string title ;
2021-11-03 03:53:48 +01:00
/// <summary>Performer</summary>
2021-09-26 05:07:17 +02:00
public string performer ;
2021-08-07 03:44:11 +02:00
}
2021-08-04 00:40:09 +02:00
2021-11-03 18:20:54 +01:00
/// <summary>Contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessage"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x36B091DE)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessage : DecryptedMessageBase
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a> (added in layer 45)</summary>
2021-08-07 03:44:11 +02:00
public Flags flags ;
2021-11-03 03:53:48 +01:00
/// <summary>Random message ID, assigned by the author of message.<br/>Must be equal to the ID passed to sending method.</summary>
2021-08-07 03:44:11 +02:00
public long random_id ;
2021-11-03 03:53:48 +01:00
/// <summary>Message lifetime. Has higher priority than <see cref="Layer8.DecryptedMessageActionSetMessageTTL"/>.<br/>Parameter added in <a href="https://corefork.telegram.org/api/layers#layer-17">Layer 17</a>.</summary>
2021-08-07 03:44:11 +02:00
public int ttl ;
2021-11-03 03:53:48 +01:00
/// <summary>Message text</summary>
2021-08-07 03:44:11 +02:00
public string message ;
2021-11-03 03:53:48 +01:00
/// <summary>Media content</summary>
2021-08-07 03:44:11 +02:00
[IfFlag(9)] public DecryptedMessageMedia media ;
2021-11-03 03:53:48 +01:00
/// <summary>Message <a href="https://corefork.telegram.org/api/entities">entities</a> for styled text (parameter added in layer 45)</summary>
2021-08-07 03:44:11 +02:00
[IfFlag(7)] public MessageEntity [ ] entities ;
2021-11-03 03:53:48 +01:00
/// <summary>Specifies the ID of the inline bot that generated the message (parameter added in layer 45)</summary>
2021-08-07 03:44:11 +02:00
[IfFlag(11)] public string via_bot_name ;
2021-11-03 03:53:48 +01:00
/// <summary>Random message ID of the message this message replies to (parameter added in layer 45)</summary>
2021-08-07 03:44:11 +02:00
[IfFlag(3)] public long reply_to_random_id ;
2021-10-23 03:36:46 +02:00
2022-02-04 02:51:14 +01:00
[Flags] public enum Flags : uint
2021-11-03 03:53:48 +01:00
{
/// <summary>Field <see cref="reply_to_random_id"/> has a value</summary>
has_reply_to_random_id = 0x8 ,
/// <summary>Field <see cref="entities"/> has a value</summary>
has_entities = 0x80 ,
/// <summary>Field <see cref="media"/> has a value</summary>
has_media = 0x200 ,
/// <summary>Field <see cref="via_bot_name"/> has a value</summary>
has_via_bot_name = 0x800 ,
}
/// <summary>Random message ID, assigned by the author of message.<br/>Must be equal to the ID passed to sending method.</summary>
2021-10-23 03:36:46 +02:00
public override long RandomId = > random_id ;
2021-08-07 03:44:11 +02:00
}
2021-11-03 18:20:54 +01:00
/// <summary>Photo attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaPhoto"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0xF1FA8D78)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaPhoto : DecryptedMessageMedia
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Content of thumbnail file (JPEGfile, quality 55, set in a square 90x90)</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] thumb ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail width</summary>
2021-08-07 03:44:11 +02:00
public int thumb_w ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail height</summary>
2021-08-07 03:44:11 +02:00
public int thumb_h ;
2021-11-03 03:53:48 +01:00
/// <summary>Photo width</summary>
2021-08-07 03:44:11 +02:00
public int w ;
2021-11-03 03:53:48 +01:00
/// <summary>Photo height</summary>
2021-08-07 03:44:11 +02:00
public int h ;
2021-11-03 03:53:48 +01:00
/// <summary>Size of the photo in bytes</summary>
2021-08-07 03:44:11 +02:00
public int size ;
2021-11-03 03:53:48 +01:00
/// <summary>Key to decrypt an attached file with a full version</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] key ;
2021-11-03 03:53:48 +01:00
/// <summary>Initialization vector</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] iv ;
2021-11-03 03:53:48 +01:00
/// <summary>Caption</summary>
2021-08-07 03:44:11 +02:00
public string caption ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Video attached to an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaVideo"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x970C8C0E)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaVideo : DecryptedMessageMedia
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Content of thumbnail file (JPEG file, quality 55, set in a square 90x90)</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] thumb ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail width</summary>
2021-08-07 03:44:11 +02:00
public int thumb_w ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail height</summary>
2021-08-07 03:44:11 +02:00
public int thumb_h ;
2021-11-03 03:53:48 +01:00
/// <summary>Duration of video in seconds</summary>
2021-08-07 03:44:11 +02:00
public int duration ;
2021-11-03 03:53:48 +01:00
/// <summary>MIME-type of the video file<br/>Parameter added in <a href="https://corefork.telegram.org/api/layers#layer-17">Layer 17</a>.</summary>
2021-08-07 03:44:11 +02:00
public string mime_type ;
2021-11-03 03:53:48 +01:00
/// <summary>Image width</summary>
2021-08-07 03:44:11 +02:00
public int w ;
2021-11-03 03:53:48 +01:00
/// <summary>Image height</summary>
2021-08-07 03:44:11 +02:00
public int h ;
2021-11-03 03:53:48 +01:00
/// <summary>File size</summary>
2021-08-07 03:44:11 +02:00
public int size ;
2021-11-03 03:53:48 +01:00
/// <summary>Key to decrypt the attached video file</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] key ;
2021-11-03 03:53:48 +01:00
/// <summary>Initialization vector</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] iv ;
2021-11-03 03:53:48 +01:00
/// <summary>Caption</summary>
2021-08-07 03:44:11 +02:00
public string caption ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Document attached to a message in a secret chat. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaDocument"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x7AFE8AE2)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaDocument : DecryptedMessageMedia
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail-file contents (JPEG-file, quality 55, set in a 90x90 square)</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] thumb ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail width</summary>
2021-08-07 03:44:11 +02:00
public int thumb_w ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail height</summary>
2021-08-07 03:44:11 +02:00
public int thumb_h ;
2021-11-03 03:53:48 +01:00
/// <summary>File MIME-type</summary>
2021-08-07 03:44:11 +02:00
public string mime_type ;
2021-11-03 03:53:48 +01:00
/// <summary>Document size</summary>
2021-08-07 03:44:11 +02:00
public int size ;
2021-11-03 03:53:48 +01:00
/// <summary>Key to decrypt the attached document file</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] key ;
2021-11-03 03:53:48 +01:00
/// <summary>Initialization</summary>
2021-08-07 03:44:11 +02:00
public byte [ ] iv ;
2021-11-03 03:53:48 +01:00
/// <summary>Document attributes for media types</summary>
2021-08-07 03:44:11 +02:00
public DocumentAttribute [ ] attributes ;
2021-11-03 03:53:48 +01:00
/// <summary>Caption</summary>
2021-08-07 03:44:11 +02:00
public string caption ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Venue <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaVenue"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x8A0DF56F)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaVenue : DecryptedMessageMedia
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Latitude of venue</summary>
2021-08-07 03:44:11 +02:00
public double lat ;
2021-11-03 03:53:48 +01:00
/// <summary>Longitude of venue</summary>
2022-01-29 16:47:47 +01:00
public double lon ;
2021-11-03 03:53:48 +01:00
/// <summary>Venue name</summary>
2021-08-07 03:44:11 +02:00
public string title ;
2021-11-03 03:53:48 +01:00
/// <summary>Address</summary>
2021-08-07 03:44:11 +02:00
public string address ;
2021-11-03 03:53:48 +01:00
/// <summary>Venue provider: currently only "foursquare" needs to be supported</summary>
2021-08-07 03:44:11 +02:00
public string provider ;
2021-11-03 03:53:48 +01:00
/// <summary>Venue ID in the provider's database</summary>
2021-08-07 03:44:11 +02:00
public string venue_id ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Webpage preview <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaWebPage"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0xE50511D8)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaWebPage : DecryptedMessageMedia
2021-11-03 03:53:48 +01:00
{
/// <summary>URL of webpage</summary>
public string url ;
}
2021-08-04 00:40:09 +02:00
}
2021-08-07 03:44:11 +02:00
namespace Layer73
2021-08-04 00:40:09 +02:00
{
2021-11-03 18:20:54 +01:00
/// <summary>Contents of an encrypted message. <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessage"/></para></summary>
2021-08-12 11:01:15 +02:00
[TLDef(0x91CC4674)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessage : DecryptedMessageBase
2021-08-07 03:44:11 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Flags, see <a href="https://corefork.telegram.org/mtproto/TL-combinators#conditional-fields">TL conditional fields</a> (added in layer 45)</summary>
2021-08-07 03:44:11 +02:00
public Flags flags ;
2021-11-03 03:53:48 +01:00
/// <summary>Random message ID, assigned by the author of message.<br/>Must be equal to the ID passed to sending method.</summary>
2021-08-07 03:44:11 +02:00
public long random_id ;
2021-11-03 03:53:48 +01:00
/// <summary>Message lifetime. Has higher priority than <see cref="Layer8.DecryptedMessageActionSetMessageTTL"/>.<br/>Parameter added in <a href="https://corefork.telegram.org/api/layers#layer-17">Layer 17</a>.</summary>
2021-08-07 03:44:11 +02:00
public int ttl ;
2021-11-03 03:53:48 +01:00
/// <summary>Message text</summary>
2021-08-07 03:44:11 +02:00
public string message ;
2021-11-03 03:53:48 +01:00
/// <summary>Media content</summary>
2021-09-26 05:07:17 +02:00
[IfFlag(9)] public DecryptedMessageMedia media ;
2021-11-03 03:53:48 +01:00
/// <summary>Message <a href="https://corefork.telegram.org/api/entities">entities</a> for styled text (parameter added in layer 45)</summary>
2021-08-07 03:44:11 +02:00
[IfFlag(7)] public MessageEntity [ ] entities ;
2021-11-03 03:53:48 +01:00
/// <summary>Specifies the ID of the inline bot that generated the message (parameter added in layer 45)</summary>
2021-08-07 03:44:11 +02:00
[IfFlag(11)] public string via_bot_name ;
2021-11-03 03:53:48 +01:00
/// <summary>Random message ID of the message this message replies to (parameter added in layer 45)</summary>
2021-08-07 03:44:11 +02:00
[IfFlag(3)] public long reply_to_random_id ;
2021-11-03 03:53:48 +01:00
/// <summary>Random group ID, assigned by the author of message.<br/>Multiple encrypted messages with a photo attached and with the same group ID indicate an <a href="https://corefork.telegram.org/api/files#albums-grouped-media">album or grouped media</a> (parameter added in layer 45)</summary>
2021-08-07 03:44:11 +02:00
[IfFlag(17)] public long grouped_id ;
2021-10-23 03:36:46 +02:00
2022-02-04 02:51:14 +01:00
[Flags] public enum Flags : uint
2021-11-03 03:53:48 +01:00
{
/// <summary>Field <see cref="reply_to_random_id"/> has a value</summary>
has_reply_to_random_id = 0x8 ,
/// <summary>Field <see cref="entities"/> has a value</summary>
has_entities = 0x80 ,
/// <summary>Field <see cref="media"/> has a value</summary>
has_media = 0x200 ,
/// <summary>Field <see cref="via_bot_name"/> has a value</summary>
has_via_bot_name = 0x800 ,
/// <summary>Field <see cref="grouped_id"/> has a value</summary>
has_grouped_id = 0x20000 ,
}
/// <summary>Random message ID, assigned by the author of message.<br/>Must be equal to the ID passed to sending method.</summary>
2021-10-23 03:36:46 +02:00
public override long RandomId = > random_id ;
2021-08-07 03:44:11 +02:00
}
2021-08-04 00:40:09 +02:00
}
2021-09-26 05:07:17 +02:00
namespace Layer20
{
2021-11-03 18:20:54 +01:00
/// <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>
2021-09-26 05:07:17 +02:00
[TLDef(0xF3C9611B)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageActionRequestKey : DecryptedMessageAction
2021-09-26 05:07:17 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Exchange ID</summary>
2021-09-26 05:07:17 +02:00
public long exchange_id ;
2021-11-03 03:53:48 +01:00
/// <summary>g_a, see <a href="https://corefork.telegram.org/api/end-to-end/pfs">rekeying process</a></summary>
2021-09-26 05:07:17 +02:00
public byte [ ] g_a ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Accept new key <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionAcceptKey"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0x6FE1735B)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageActionAcceptKey : DecryptedMessageAction
2021-09-26 05:07:17 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Exchange ID</summary>
2021-09-26 05:07:17 +02:00
public long exchange_id ;
2021-11-03 03:53:48 +01:00
/// <summary>B parameter, see <a href="https://corefork.telegram.org/api/end-to-end/pfs">rekeying process</a></summary>
2021-09-26 05:07:17 +02:00
public byte [ ] g_b ;
2021-11-03 03:53:48 +01:00
/// <summary>Key fingerprint, see <a href="https://corefork.telegram.org/api/end-to-end/pfs">rekeying process</a></summary>
2021-09-26 05:07:17 +02:00
public long key_fingerprint ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Abort rekeying <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionAbortKey"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0xDD05EC6B)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageActionAbortKey : DecryptedMessageAction
2021-11-03 03:53:48 +01:00
{
/// <summary>Exchange ID</summary>
public long exchange_id ;
}
2021-11-03 18:20:54 +01:00
/// <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>
2021-09-26 05:07:17 +02:00
[TLDef(0xEC2E0B9B)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageActionCommitKey : DecryptedMessageAction
2021-09-26 05:07:17 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Exchange ID, see <a href="https://corefork.telegram.org/api/end-to-end/pfs">rekeying process</a></summary>
2021-09-26 05:07:17 +02:00
public long exchange_id ;
2021-11-03 03:53:48 +01:00
/// <summary>Key fingerprint, see <a href="https://corefork.telegram.org/api/end-to-end/pfs">rekeying process</a></summary>
2021-09-26 05:07:17 +02:00
public long key_fingerprint ;
}
2021-11-03 18:20:54 +01:00
/// <summary>NOOP action <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageActionNoop"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0xA82FDD63)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageActionNoop : DecryptedMessageAction { }
2021-09-26 05:07:17 +02:00
}
namespace Layer23
{
2021-11-03 18:20:54 +01:00
/// <summary>Image description. <para>See <a href="https://corefork.telegram.org/constructor/photoSize"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0x77BFB61B)]
public partial class PhotoSize : PhotoSizeBase
{
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail type</summary>
2021-09-26 05:07:17 +02:00
public string type ;
public FileLocationBase location ;
2021-11-03 03:53:48 +01:00
/// <summary>Image width</summary>
2021-09-26 05:07:17 +02:00
public int w ;
2021-11-03 03:53:48 +01:00
/// <summary>Image height</summary>
2021-09-26 05:07:17 +02:00
public int h ;
2021-11-03 03:53:48 +01:00
/// <summary>File size</summary>
2021-09-26 05:07:17 +02:00
public int size ;
2021-10-23 03:36:46 +02:00
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail type</summary>
2021-10-23 03:36:46 +02:00
public override string Type = > type ;
2021-09-26 05:07:17 +02:00
}
2021-11-03 18:20:54 +01:00
/// <summary>Description of an image and its content. <para>See <a href="https://corefork.telegram.org/constructor/photoCachedSize"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0xE9A734FA)]
public partial class PhotoCachedSize : PhotoSizeBase
{
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail type</summary>
2021-09-26 05:07:17 +02:00
public string type ;
public FileLocationBase location ;
2021-11-03 03:53:48 +01:00
/// <summary>Image width</summary>
2021-09-26 05:07:17 +02:00
public int w ;
2021-11-03 03:53:48 +01:00
/// <summary>Image height</summary>
2021-09-26 05:07:17 +02:00
public int h ;
2021-11-03 03:53:48 +01:00
/// <summary>Binary data, file content</summary>
2021-09-26 05:07:17 +02:00
public byte [ ] bytes ;
2021-10-23 03:36:46 +02:00
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail type</summary>
2021-10-23 03:36:46 +02:00
public override string Type = > type ;
2021-09-26 05:07:17 +02:00
}
2021-11-03 18:20:54 +01:00
/// <summary>Defines a sticker <para>See <a href="https://corefork.telegram.org/constructor/documentAttributeSticker"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0xFB0A5727)]
2021-11-10 17:26:40 +01:00
public class DocumentAttributeSticker : DocumentAttribute { }
2021-11-03 18:20:54 +01:00
/// <summary>Defines a video <para>See <a href="https://corefork.telegram.org/constructor/documentAttributeVideo"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0x5910CCCB)]
2021-11-10 17:26:40 +01:00
public class DocumentAttributeVideo : DocumentAttribute
2021-09-26 05:07:17 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Duration in seconds</summary>
2021-09-26 05:07:17 +02:00
public int duration ;
2021-11-03 03:53:48 +01:00
/// <summary>Video width</summary>
2021-09-26 05:07:17 +02:00
public int w ;
2021-11-03 03:53:48 +01:00
/// <summary>Video height</summary>
2021-09-26 05:07:17 +02:00
public int h ;
}
2021-11-03 18:20:54 +01:00
/// <summary>Represents an audio file <para>See <a href="https://corefork.telegram.org/constructor/documentAttributeAudio"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0x051448E5)]
2021-11-10 17:26:40 +01:00
public class DocumentAttributeAudio : DocumentAttribute
2021-11-03 03:53:48 +01:00
{
/// <summary>Duration in seconds</summary>
public int duration ;
}
2021-09-26 05:07:17 +02:00
2021-11-03 18:20:54 +01:00
/// <summary>Non-e2e documented forwarded from non-secret chat <para>See <a href="https://corefork.telegram.org/constructor/decryptedMessageMediaExternalDocument"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0xFA95B0DD)]
2021-11-10 17:26:40 +01:00
public class DecryptedMessageMediaExternalDocument : DecryptedMessageMedia
2021-09-26 05:07:17 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Document ID</summary>
2021-09-26 05:07:17 +02:00
public long id ;
2021-11-03 03:53:48 +01:00
/// <summary>access hash</summary>
2021-09-26 05:07:17 +02:00
public long access_hash ;
2021-11-03 03:53:48 +01:00
/// <summary>Date</summary>
2021-09-26 05:07:17 +02:00
public DateTime date ;
2021-11-03 03:53:48 +01:00
/// <summary>Mime type</summary>
2021-09-26 05:07:17 +02:00
public string mime_type ;
2021-11-03 03:53:48 +01:00
/// <summary>Size</summary>
2021-09-26 05:07:17 +02:00
public int size ;
2021-11-03 03:53:48 +01:00
/// <summary>Thumbnail</summary>
2021-09-26 05:07:17 +02:00
public PhotoSizeBase thumb ;
2021-11-03 03:53:48 +01:00
/// <summary>DC ID</summary>
2021-09-26 05:07:17 +02:00
public int dc_id ;
2021-11-03 03:53:48 +01:00
/// <summary>Attributes for media types</summary>
2021-09-26 05:07:17 +02:00
public DocumentAttribute [ ] attributes ;
}
2021-11-03 18:20:54 +01:00
/// <summary>File is currently unavailable. <para>See <a href="https://corefork.telegram.org/constructor/fileLocationUnavailable"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0x7C596B46)]
2021-11-10 17:26:40 +01:00
public class FileLocationUnavailable : FileLocationBase
2021-09-26 05:07:17 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Server volume</summary>
2021-09-26 05:07:17 +02:00
public long volume_id ;
2021-11-03 03:53:48 +01:00
/// <summary>File ID</summary>
2021-09-26 05:07:17 +02:00
public int local_id ;
2021-11-03 03:53:48 +01:00
/// <summary>Checksum to access the file</summary>
2021-09-26 05:07:17 +02:00
public long secret ;
2021-10-23 03:36:46 +02:00
2021-11-03 03:53:48 +01:00
/// <summary>Server volume</summary>
2021-10-23 03:36:46 +02:00
public override long VolumeId = > volume_id ;
2021-11-03 03:53:48 +01:00
/// <summary>File ID</summary>
2021-10-23 03:36:46 +02:00
public override int LocalId = > local_id ;
2021-11-03 03:53:48 +01:00
/// <summary>Checksum to access the file</summary>
2021-10-23 03:36:46 +02:00
public override long Secret = > secret ;
2021-09-26 05:07:17 +02:00
}
2021-11-03 18:20:54 +01:00
/// <summary>File location. <para>See <a href="https://corefork.telegram.org/constructor/fileLocation"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0x53D69076)]
2021-11-10 17:26:40 +01:00
public class FileLocation : FileLocationBase
2021-09-26 05:07:17 +02:00
{
2021-11-03 03:53:48 +01:00
/// <summary>Number of the data center holding the file</summary>
2021-09-26 05:07:17 +02:00
public int dc_id ;
2021-11-03 03:53:48 +01:00
/// <summary>Server volume</summary>
2021-09-26 05:07:17 +02:00
public long volume_id ;
2021-11-03 03:53:48 +01:00
/// <summary>File ID</summary>
2021-09-26 05:07:17 +02:00
public int local_id ;
2021-11-03 03:53:48 +01:00
/// <summary>Checksum to access the file</summary>
2021-09-26 05:07:17 +02:00
public long secret ;
2021-10-23 03:36:46 +02:00
2021-11-03 03:53:48 +01:00
/// <summary>Server volume</summary>
2021-10-23 03:36:46 +02:00
public override long VolumeId = > volume_id ;
2021-11-03 03:53:48 +01:00
/// <summary>File ID</summary>
2021-10-23 03:36:46 +02:00
public override int LocalId = > local_id ;
2021-11-03 03:53:48 +01:00
/// <summary>Checksum to access the file</summary>
2021-10-23 03:36:46 +02:00
public override long Secret = > secret ;
2021-09-26 05:07:17 +02:00
}
}
namespace Layer66
{
2021-11-03 18:20:54 +01:00
/// <summary>User is uploading a round video <para>See <a href="https://corefork.telegram.org/constructor/sendMessageUploadRoundAction"/></para></summary>
2021-09-26 05:07:17 +02:00
[TLDef(0xBB718624)]
2021-11-10 17:26:40 +01:00
public class SendMessageUploadRoundAction : SendMessageAction { }
2021-09-26 05:07:17 +02:00
}
namespace Layer46
{ }
2021-08-04 00:40:09 +02:00
}