mirror of
https://github.com/opengram-server/opengram.git
synced 2026-08-09 07:43:23 +03:00
Initial commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
namespace MyTelegram.Abstractions;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="AuthKeyId"></param>
|
||||
/// <param name="MsgKey">int128,length=16</param>
|
||||
/// <param name="EncryptedData"></param>
|
||||
/// <param name="ConnectionId"></param>
|
||||
/// <param name="ConnectionType"></param>
|
||||
/// <param name="ClientIp"></param>
|
||||
/// <param name="RequestId"></param>
|
||||
/// <param name="Date"></param>
|
||||
public record EncryptedMessage(long AuthKeyId,
|
||||
ReadOnlyMemory<byte> MsgKey,
|
||||
ReadOnlyMemory<byte> EncryptedData,
|
||||
string ConnectionId,
|
||||
ConnectionType ConnectionType,
|
||||
string ClientIp,
|
||||
Guid RequestId,
|
||||
long Date
|
||||
) : IMtpMessage
|
||||
{
|
||||
public string ConnectionId { get; set; } = ConnectionId;
|
||||
public ConnectionType ConnectionType { get; set; } = ConnectionType;
|
||||
public string ClientIp { get; set; } = ClientIp;
|
||||
[JsonIgnore]public IMemoryOwner<byte>? MemoryOwner { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user