mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-06 15:05:54 +00:00
parent
0d55940c12
commit
133b9fdf6c
784 changed files with 17201 additions and 10048 deletions
13
TeleSharp.TL/TL/Messages/TLAbsChats.cs
Normal file
13
TeleSharp.TL/TL/Messages/TLAbsChats.cs
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
public abstract class TLAbsChats : TLObject
|
||||
{
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1269012015)]
|
||||
[TLObject(-1269012015)]
|
||||
public class TLAffectedHistory : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,30 +18,30 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int pts {get;set;}
|
||||
public int pts_count {get;set;}
|
||||
public int offset {get;set;}
|
||||
public int pts { get; set; }
|
||||
public int pts_count { get; set; }
|
||||
public int offset { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
pts = br.ReadInt32();
|
||||
pts_count = br.ReadInt32();
|
||||
offset = br.ReadInt32();
|
||||
pts_count = br.ReadInt32();
|
||||
offset = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(pts);
|
||||
bw.Write(pts_count);
|
||||
bw.Write(offset);
|
||||
bw.Write(pts_count);
|
||||
bw.Write(offset);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-2066640507)]
|
||||
[TLObject(-2066640507)]
|
||||
public class TLAffectedMessages : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int pts {get;set;}
|
||||
public int pts_count {get;set;}
|
||||
public int pts { get; set; }
|
||||
public int pts_count { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
pts = br.ReadInt32();
|
||||
pts_count = br.ReadInt32();
|
||||
pts_count = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(pts);
|
||||
bw.Write(pts_count);
|
||||
bw.Write(pts_count);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-302170017)]
|
||||
[TLObject(-302170017)]
|
||||
public class TLAllStickers : TLAbsAllStickers
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int hash {get;set;}
|
||||
public TLVector<TLStickerSet> sets {get;set;}
|
||||
public int hash { get; set; }
|
||||
public TLVector<TLStickerSet> sets { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
hash = br.ReadInt32();
|
||||
sets = (TLVector<TLStickerSet>)ObjectUtils.DeserializeVector<TLStickerSet>(br);
|
||||
sets = (TLVector<TLStickerSet>)ObjectUtils.DeserializeVector<TLStickerSet>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(hash);
|
||||
ObjectUtils.SerializeObject(sets,bw);
|
||||
ObjectUtils.SerializeObject(sets, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-395967805)]
|
||||
[TLObject(-395967805)]
|
||||
public class TLAllStickersNotModified : TLAbsAllStickers
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,22 +18,22 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1338747336)]
|
||||
[TLObject(1338747336)]
|
||||
public class TLArchivedStickers : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int count {get;set;}
|
||||
public TLVector<TLAbsStickerSetCovered> sets {get;set;}
|
||||
public int count { get; set; }
|
||||
public TLVector<TLAbsStickerSetCovered> sets { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
count = br.ReadInt32();
|
||||
sets = (TLVector<TLAbsStickerSetCovered>)ObjectUtils.DeserializeVector<TLAbsStickerSetCovered>(br);
|
||||
sets = (TLVector<TLAbsStickerSetCovered>)ObjectUtils.DeserializeVector<TLAbsStickerSetCovered>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(count);
|
||||
ObjectUtils.SerializeObject(sets,bw);
|
||||
ObjectUtils.SerializeObject(sets, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,63 +7,66 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1324486149)]
|
||||
[TLObject(911761060)]
|
||||
public class TLBotCallbackAnswer : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -1324486149;
|
||||
return 911761060;
|
||||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool alert {get;set;}
|
||||
public bool has_url {get;set;}
|
||||
public string message {get;set;}
|
||||
public string url {get;set;}
|
||||
public int flags { get; set; }
|
||||
public bool alert { get; set; }
|
||||
public bool has_url { get; set; }
|
||||
public string message { get; set; }
|
||||
public string url { get; set; }
|
||||
public int cache_time { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = alert ? (flags | 2) : (flags & ~2);
|
||||
flags = has_url ? (flags | 8) : (flags & ~8);
|
||||
flags = message != null ? (flags | 1) : (flags & ~1);
|
||||
flags = url != null ? (flags | 4) : (flags & ~4);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = alert ? (flags | 2) : (flags & ~2);
|
||||
flags = has_url ? (flags | 8) : (flags & ~8);
|
||||
flags = message != null ? (flags | 1) : (flags & ~1);
|
||||
flags = url != null ? (flags | 4) : (flags & ~4);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
alert = (flags & 2) != 0;
|
||||
has_url = (flags & 8) != 0;
|
||||
if ((flags & 1) != 0)
|
||||
message = StringUtil.Deserialize(br);
|
||||
else
|
||||
message = null;
|
||||
alert = (flags & 2) != 0;
|
||||
has_url = (flags & 8) != 0;
|
||||
if ((flags & 1) != 0)
|
||||
message = StringUtil.Deserialize(br);
|
||||
else
|
||||
message = null;
|
||||
|
||||
if ((flags & 4) != 0)
|
||||
url = StringUtil.Deserialize(br);
|
||||
else
|
||||
url = null;
|
||||
if ((flags & 4) != 0)
|
||||
url = StringUtil.Deserialize(br);
|
||||
else
|
||||
url = null;
|
||||
|
||||
cache_time = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
|
||||
if ((flags & 1) != 0)
|
||||
StringUtil.Serialize(message,bw);
|
||||
if ((flags & 4) != 0)
|
||||
StringUtil.Serialize(url,bw);
|
||||
if ((flags & 1) != 0)
|
||||
StringUtil.Serialize(message, bw);
|
||||
if ((flags & 4) != 0)
|
||||
StringUtil.Serialize(url, bw);
|
||||
bw.Write(cache_time);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,65 +7,68 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(627509670)]
|
||||
[TLObject(-858565059)]
|
||||
public class TLBotResults : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 627509670;
|
||||
return -858565059;
|
||||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool gallery {get;set;}
|
||||
public long query_id {get;set;}
|
||||
public string next_offset {get;set;}
|
||||
public TLInlineBotSwitchPM switch_pm {get;set;}
|
||||
public TLVector<TLAbsBotInlineResult> results {get;set;}
|
||||
public int flags { get; set; }
|
||||
public bool gallery { get; set; }
|
||||
public long query_id { get; set; }
|
||||
public string next_offset { get; set; }
|
||||
public TLInlineBotSwitchPM switch_pm { get; set; }
|
||||
public TLVector<TLAbsBotInlineResult> results { get; set; }
|
||||
public int cache_time { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = gallery ? (flags | 1) : (flags & ~1);
|
||||
flags = next_offset != null ? (flags | 2) : (flags & ~2);
|
||||
flags = switch_pm != null ? (flags | 4) : (flags & ~4);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = gallery ? (flags | 1) : (flags & ~1);
|
||||
flags = next_offset != null ? (flags | 2) : (flags & ~2);
|
||||
flags = switch_pm != null ? (flags | 4) : (flags & ~4);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
gallery = (flags & 1) != 0;
|
||||
query_id = br.ReadInt64();
|
||||
if ((flags & 2) != 0)
|
||||
next_offset = StringUtil.Deserialize(br);
|
||||
else
|
||||
next_offset = null;
|
||||
gallery = (flags & 1) != 0;
|
||||
query_id = br.ReadInt64();
|
||||
if ((flags & 2) != 0)
|
||||
next_offset = StringUtil.Deserialize(br);
|
||||
else
|
||||
next_offset = null;
|
||||
|
||||
if ((flags & 4) != 0)
|
||||
switch_pm = (TLInlineBotSwitchPM)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
switch_pm = null;
|
||||
if ((flags & 4) != 0)
|
||||
switch_pm = (TLInlineBotSwitchPM)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
switch_pm = null;
|
||||
|
||||
results = (TLVector<TLAbsBotInlineResult>)ObjectUtils.DeserializeVector<TLAbsBotInlineResult>(br);
|
||||
results = (TLVector<TLAbsBotInlineResult>)ObjectUtils.DeserializeVector<TLAbsBotInlineResult>(br);
|
||||
cache_time = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
bw.Write(query_id);
|
||||
if ((flags & 2) != 0)
|
||||
StringUtil.Serialize(next_offset,bw);
|
||||
if ((flags & 4) != 0)
|
||||
ObjectUtils.SerializeObject(switch_pm,bw);
|
||||
ObjectUtils.SerializeObject(results,bw);
|
||||
bw.Write(query_id);
|
||||
if ((flags & 2) != 0)
|
||||
StringUtil.Serialize(next_offset, bw);
|
||||
if ((flags & 4) != 0)
|
||||
ObjectUtils.SerializeObject(switch_pm, bw);
|
||||
ObjectUtils.SerializeObject(results, bw);
|
||||
bw.Write(cache_time);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1725551049)]
|
||||
[TLObject(-1725551049)]
|
||||
public class TLChannelMessages : TLAbsMessages
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,41 +18,41 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public int pts {get;set;}
|
||||
public int count {get;set;}
|
||||
public TLVector<TLAbsMessage> messages {get;set;}
|
||||
public TLVector<TLAbsChat> chats {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public int flags { get; set; }
|
||||
public int pts { get; set; }
|
||||
public int count { get; set; }
|
||||
public TLVector<TLAbsMessage> messages { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
pts = br.ReadInt32();
|
||||
count = br.ReadInt32();
|
||||
messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
pts = br.ReadInt32();
|
||||
count = br.ReadInt32();
|
||||
messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(pts);
|
||||
bw.Write(count);
|
||||
ObjectUtils.SerializeObject(messages,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
bw.Write(flags);
|
||||
bw.Write(pts);
|
||||
bw.Write(count);
|
||||
ObjectUtils.SerializeObject(messages, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-438840932)]
|
||||
[TLObject(-438840932)]
|
||||
public class TLChatFull : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,30 +18,30 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsChatFull full_chat {get;set;}
|
||||
public TLVector<TLAbsChat> chats {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public TLAbsChatFull full_chat { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
full_chat = (TLAbsChatFull)ObjectUtils.DeserializeObject(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(full_chat,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(full_chat, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1694474197)]
|
||||
public class TLChats : TLObject
|
||||
[TLObject(1694474197)]
|
||||
public class TLChats : TLAbsChats
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
|
|
@ -18,13 +18,13 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAbsChat> chats {get;set;}
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -34,8 +34,8 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
45
TeleSharp.TL/TL/Messages/TLChatsSlice.cs
Normal file
45
TeleSharp.TL/TL/Messages/TLChatsSlice.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1663561404)]
|
||||
public class TLChatsSlice : TLAbsChats
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -1663561404;
|
||||
}
|
||||
}
|
||||
|
||||
public int count { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
count = br.ReadInt32();
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(count);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(740433629)]
|
||||
[TLObject(740433629)]
|
||||
public class TLDhConfig : TLAbsDhConfig
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,33 +18,33 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int g {get;set;}
|
||||
public byte[] p {get;set;}
|
||||
public int version {get;set;}
|
||||
public byte[] random {get;set;}
|
||||
public int g { get; set; }
|
||||
public byte[] p { get; set; }
|
||||
public int version { get; set; }
|
||||
public byte[] random { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
g = br.ReadInt32();
|
||||
p = BytesUtil.Deserialize(br);
|
||||
version = br.ReadInt32();
|
||||
random = BytesUtil.Deserialize(br);
|
||||
p = BytesUtil.Deserialize(br);
|
||||
version = br.ReadInt32();
|
||||
random = BytesUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(g);
|
||||
BytesUtil.Serialize(p,bw);
|
||||
bw.Write(version);
|
||||
BytesUtil.Serialize(random,bw);
|
||||
BytesUtil.Serialize(p, bw);
|
||||
bw.Write(version);
|
||||
BytesUtil.Serialize(random, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1058912715)]
|
||||
[TLObject(-1058912715)]
|
||||
public class TLDhConfigNotModified : TLAbsDhConfig
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,13 +18,13 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public byte[] random {get;set;}
|
||||
public byte[] random { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -34,8 +34,8 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(random,bw);
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(random, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(364538944)]
|
||||
[TLObject(364538944)]
|
||||
public class TLDialogs : TLAbsDialogs
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,33 +18,33 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLDialog> dialogs {get;set;}
|
||||
public TLVector<TLAbsMessage> messages {get;set;}
|
||||
public TLVector<TLAbsChat> chats {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public TLVector<TLDialog> dialogs { get; set; }
|
||||
public TLVector<TLAbsMessage> messages { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
dialogs = (TLVector<TLDialog>)ObjectUtils.DeserializeVector<TLDialog>(br);
|
||||
messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(dialogs,bw);
|
||||
ObjectUtils.SerializeObject(messages,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(dialogs, bw);
|
||||
ObjectUtils.SerializeObject(messages, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1910543603)]
|
||||
[TLObject(1910543603)]
|
||||
public class TLDialogsSlice : TLAbsDialogs
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,36 +18,36 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int count {get;set;}
|
||||
public TLVector<TLDialog> dialogs {get;set;}
|
||||
public TLVector<TLAbsMessage> messages {get;set;}
|
||||
public TLVector<TLAbsChat> chats {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public int count { get; set; }
|
||||
public TLVector<TLDialog> dialogs { get; set; }
|
||||
public TLVector<TLAbsMessage> messages { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
count = br.ReadInt32();
|
||||
dialogs = (TLVector<TLDialog>)ObjectUtils.DeserializeVector<TLDialog>(br);
|
||||
messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
dialogs = (TLVector<TLDialog>)ObjectUtils.DeserializeVector<TLDialog>(br);
|
||||
messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(count);
|
||||
ObjectUtils.SerializeObject(dialogs,bw);
|
||||
ObjectUtils.SerializeObject(messages,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
ObjectUtils.SerializeObject(dialogs, bw);
|
||||
ObjectUtils.SerializeObject(messages, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-123893531)]
|
||||
[TLObject(-123893531)]
|
||||
public class TLFeaturedStickers : TLAbsFeaturedStickers
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,30 +18,30 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int hash {get;set;}
|
||||
public TLVector<TLAbsStickerSetCovered> sets {get;set;}
|
||||
public TLVector<long> unread {get;set;}
|
||||
public int hash { get; set; }
|
||||
public TLVector<TLAbsStickerSetCovered> sets { get; set; }
|
||||
public TLVector<long> unread { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
hash = br.ReadInt32();
|
||||
sets = (TLVector<TLAbsStickerSetCovered>)ObjectUtils.DeserializeVector<TLAbsStickerSetCovered>(br);
|
||||
unread = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
sets = (TLVector<TLAbsStickerSetCovered>)ObjectUtils.DeserializeVector<TLAbsStickerSetCovered>(br);
|
||||
unread = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(hash);
|
||||
ObjectUtils.SerializeObject(sets,bw);
|
||||
ObjectUtils.SerializeObject(unread,bw);
|
||||
ObjectUtils.SerializeObject(sets, bw);
|
||||
ObjectUtils.SerializeObject(unread, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(82699215)]
|
||||
[TLObject(82699215)]
|
||||
public class TLFeaturedStickersNotModified : TLAbsFeaturedStickers
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,22 +18,22 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1158290442)]
|
||||
[TLObject(1158290442)]
|
||||
public class TLFoundGifs : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int next_offset {get;set;}
|
||||
public TLVector<TLAbsFoundGif> results {get;set;}
|
||||
public int next_offset { get; set; }
|
||||
public TLVector<TLAbsFoundGif> results { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
next_offset = br.ReadInt32();
|
||||
results = (TLVector<TLAbsFoundGif>)ObjectUtils.DeserializeVector<TLAbsFoundGif>(br);
|
||||
results = (TLVector<TLAbsFoundGif>)ObjectUtils.DeserializeVector<TLAbsFoundGif>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(next_offset);
|
||||
ObjectUtils.SerializeObject(results,bw);
|
||||
ObjectUtils.SerializeObject(results, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1707344487)]
|
||||
[TLObject(-1707344487)]
|
||||
public class TLHighScores : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLHighScore> scores {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public TLVector<TLHighScore> scores { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
scores = (TLVector<TLHighScore>)ObjectUtils.DeserializeVector<TLHighScore>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(scores,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(scores, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(649453030)]
|
||||
[TLObject(649453030)]
|
||||
public class TLMessageEditData : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,29 +18,29 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool caption {get;set;}
|
||||
public int flags { get; set; }
|
||||
public bool caption { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = caption ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = caption ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
caption = (flags & 1) != 0;
|
||||
caption = (flags & 1) != 0;
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1938715001)]
|
||||
[TLObject(-1938715001)]
|
||||
public class TLMessages : TLAbsMessages
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,30 +18,30 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAbsMessage> messages {get;set;}
|
||||
public TLVector<TLAbsChat> chats {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public TLVector<TLAbsMessage> messages { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(messages,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(messages, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(189033187)]
|
||||
[TLObject(189033187)]
|
||||
public class TLMessagesSlice : TLAbsMessages
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,33 +18,33 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int count {get;set;}
|
||||
public TLVector<TLAbsMessage> messages {get;set;}
|
||||
public TLVector<TLAbsChat> chats {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public int count { get; set; }
|
||||
public TLVector<TLAbsMessage> messages { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
count = br.ReadInt32();
|
||||
messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(count);
|
||||
ObjectUtils.SerializeObject(messages,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
ObjectUtils.SerializeObject(messages, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(863093588)]
|
||||
[TLObject(863093588)]
|
||||
public class TLPeerDialogs : TLObject
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,36 +18,36 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLDialog> dialogs {get;set;}
|
||||
public TLVector<TLAbsMessage> messages {get;set;}
|
||||
public TLVector<TLAbsChat> chats {get;set;}
|
||||
public TLVector<TLAbsUser> users {get;set;}
|
||||
public Updates.TLState state {get;set;}
|
||||
public TLVector<TLDialog> dialogs { get; set; }
|
||||
public TLVector<TLAbsMessage> messages { get; set; }
|
||||
public TLVector<TLAbsChat> chats { get; set; }
|
||||
public TLVector<TLAbsUser> users { get; set; }
|
||||
public Updates.TLState state { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
dialogs = (TLVector<TLDialog>)ObjectUtils.DeserializeVector<TLDialog>(br);
|
||||
messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
state = (Updates.TLState)ObjectUtils.DeserializeObject(br);
|
||||
messages = (TLVector<TLAbsMessage>)ObjectUtils.DeserializeVector<TLAbsMessage>(br);
|
||||
chats = (TLVector<TLAbsChat>)ObjectUtils.DeserializeVector<TLAbsChat>(br);
|
||||
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||
state = (Updates.TLState)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(dialogs,bw);
|
||||
ObjectUtils.SerializeObject(messages,bw);
|
||||
ObjectUtils.SerializeObject(chats,bw);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
ObjectUtils.SerializeObject(state,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(dialogs, bw);
|
||||
ObjectUtils.SerializeObject(messages, bw);
|
||||
ObjectUtils.SerializeObject(chats, bw);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
ObjectUtils.SerializeObject(state, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1558317424)]
|
||||
[TLObject(1558317424)]
|
||||
public class TLRecentStickers : TLAbsRecentStickers
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,27 +18,27 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int hash {get;set;}
|
||||
public TLVector<TLAbsDocument> stickers {get;set;}
|
||||
public int hash { get; set; }
|
||||
public TLVector<TLAbsDocument> stickers { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
hash = br.ReadInt32();
|
||||
stickers = (TLVector<TLAbsDocument>)ObjectUtils.DeserializeVector<TLAbsDocument>(br);
|
||||
stickers = (TLVector<TLAbsDocument>)ObjectUtils.DeserializeVector<TLAbsDocument>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(hash);
|
||||
ObjectUtils.SerializeObject(stickers,bw);
|
||||
ObjectUtils.SerializeObject(stickers, bw);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(186120336)]
|
||||
[TLObject(186120336)]
|
||||
public class TLRecentStickersNotModified : TLAbsRecentStickers
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,22 +18,22 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1035731989)]
|
||||
[TLObject(1035731989)]
|
||||
public class TLRequestAcceptEncryption : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLInputEncryptedChat peer {get;set;}
|
||||
public byte[] g_b {get;set;}
|
||||
public long key_fingerprint {get;set;}
|
||||
public TLAbsEncryptedChat Response{ get; set;}
|
||||
public TLInputEncryptedChat peer { get; set; }
|
||||
public byte[] g_b { get; set; }
|
||||
public long key_fingerprint { get; set; }
|
||||
public TLAbsEncryptedChat Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br);
|
||||
g_b = BytesUtil.Deserialize(br);
|
||||
key_fingerprint = br.ReadInt64();
|
||||
g_b = BytesUtil.Deserialize(br);
|
||||
key_fingerprint = br.ReadInt64();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
BytesUtil.Serialize(g_b,bw);
|
||||
bw.Write(key_fingerprint);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
BytesUtil.Serialize(g_b, bw);
|
||||
bw.Write(key_fingerprint);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-106911223)]
|
||||
[TLObject(-106911223)]
|
||||
public class TLRequestAddChatUser : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int chat_id {get;set;}
|
||||
public TLAbsInputUser user_id {get;set;}
|
||||
public int fwd_limit {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public int chat_id { get; set; }
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public int fwd_limit { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
chat_id = br.ReadInt32();
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
fwd_limit = br.ReadInt32();
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
fwd_limit = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(chat_id);
|
||||
ObjectUtils.SerializeObject(user_id,bw);
|
||||
bw.Write(fwd_limit);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
bw.Write(fwd_limit);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1051570619)]
|
||||
[TLObject(1051570619)]
|
||||
public class TLRequestCheckChatInvite : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public string hash {get;set;}
|
||||
public TLAbsChatInvite Response{ get; set;}
|
||||
public string hash { get; set; }
|
||||
public TLAbsChatInvite Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(hash,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(hash, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsChatInvite)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsChatInvite)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1986437075)]
|
||||
[TLObject(-1986437075)]
|
||||
public class TLRequestClearRecentStickers : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool attached {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool attached { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = attached ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = attached ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
attached = (flags & 1) != 0;
|
||||
attached = (flags & 1) != 0;
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(164303470)]
|
||||
[TLObject(164303470)]
|
||||
public class TLRequestCreateChat : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAbsInputUser> users {get;set;}
|
||||
public string title {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public TLVector<TLAbsInputUser> users { get; set; }
|
||||
public string title { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
users = (TLVector<TLAbsInputUser>)ObjectUtils.DeserializeVector<TLAbsInputUser>(br);
|
||||
title = StringUtil.Deserialize(br);
|
||||
title = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(users,bw);
|
||||
StringUtil.Serialize(title,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(users, bw);
|
||||
StringUtil.Serialize(title, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-530505962)]
|
||||
[TLObject(-530505962)]
|
||||
public class TLRequestDeleteChatUser : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int chat_id {get;set;}
|
||||
public TLAbsInputUser user_id {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public int chat_id { get; set; }
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
chat_id = br.ReadInt32();
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(chat_id);
|
||||
ObjectUtils.SerializeObject(user_id,bw);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(469850889)]
|
||||
[TLObject(469850889)]
|
||||
public class TLRequestDeleteHistory : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,43 +18,43 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool just_clear {get;set;}
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public int max_id {get;set;}
|
||||
public Messages.TLAffectedHistory Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool just_clear { get; set; }
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public int max_id { get; set; }
|
||||
public Messages.TLAffectedHistory Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = just_clear ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = just_clear ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
just_clear = (flags & 1) != 0;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
max_id = br.ReadInt32();
|
||||
just_clear = (flags & 1) != 0;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
max_id = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(max_id);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(max_id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedHistory)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,42 +7,51 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1510897371)]
|
||||
[TLObject(-443640366)]
|
||||
public class TLRequestDeleteMessages : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -1510897371;
|
||||
return -443640366;
|
||||
}
|
||||
}
|
||||
|
||||
public TLVector<int> id {get;set;}
|
||||
public Messages.TLAffectedMessages Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool revoke { get; set; }
|
||||
public TLVector<int> id { get; set; }
|
||||
public Messages.TLAffectedMessages Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = revoke ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
revoke = (flags & 1) != 0;
|
||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-304536635)]
|
||||
[TLObject(-304536635)]
|
||||
public class TLRequestDiscardEncryption : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int chat_id {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int chat_id { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(chat_id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1444503762)]
|
||||
[TLObject(-1444503762)]
|
||||
public class TLRequestEditChatAdmin : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int chat_id {get;set;}
|
||||
public TLAbsInputUser user_id {get;set;}
|
||||
public bool is_admin {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int chat_id { get; set; }
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public bool is_admin { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
chat_id = br.ReadInt32();
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
is_admin = BoolUtil.Deserialize(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
is_admin = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(chat_id);
|
||||
ObjectUtils.SerializeObject(user_id,bw);
|
||||
BoolUtil.Serialize(is_admin,bw);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
BoolUtil.Serialize(is_admin, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-900957736)]
|
||||
[TLObject(-900957736)]
|
||||
public class TLRequestEditChatPhoto : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int chat_id {get;set;}
|
||||
public TLAbsInputChatPhoto photo {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public int chat_id { get; set; }
|
||||
public TLAbsInputChatPhoto photo { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
chat_id = br.ReadInt32();
|
||||
photo = (TLAbsInputChatPhoto)ObjectUtils.DeserializeObject(br);
|
||||
photo = (TLAbsInputChatPhoto)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(chat_id);
|
||||
ObjectUtils.SerializeObject(photo,bw);
|
||||
ObjectUtils.SerializeObject(photo, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-599447467)]
|
||||
[TLObject(-599447467)]
|
||||
public class TLRequestEditChatTitle : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int chat_id {get;set;}
|
||||
public string title {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public int chat_id { get; set; }
|
||||
public string title { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
chat_id = br.ReadInt32();
|
||||
title = StringUtil.Deserialize(br);
|
||||
title = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(chat_id);
|
||||
StringUtil.Serialize(title,bw);
|
||||
StringUtil.Serialize(title, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(319564933)]
|
||||
[TLObject(319564933)]
|
||||
public class TLRequestEditInlineBotMessage : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,67 +18,67 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool no_webpage {get;set;}
|
||||
public TLInputBotInlineMessageID id {get;set;}
|
||||
public string message {get;set;}
|
||||
public TLAbsReplyMarkup reply_markup {get;set;}
|
||||
public TLVector<TLAbsMessageEntity> entities {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool no_webpage { get; set; }
|
||||
public TLInputBotInlineMessageID id { get; set; }
|
||||
public string message { get; set; }
|
||||
public TLAbsReplyMarkup reply_markup { get; set; }
|
||||
public TLVector<TLAbsMessageEntity> entities { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = no_webpage ? (flags | 2) : (flags & ~2);
|
||||
flags = message != null ? (flags | 2048) : (flags & ~2048);
|
||||
flags = reply_markup != null ? (flags | 4) : (flags & ~4);
|
||||
flags = entities != null ? (flags | 8) : (flags & ~8);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = no_webpage ? (flags | 2) : (flags & ~2);
|
||||
flags = message != null ? (flags | 2048) : (flags & ~2048);
|
||||
flags = reply_markup != null ? (flags | 4) : (flags & ~4);
|
||||
flags = entities != null ? (flags | 8) : (flags & ~8);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
no_webpage = (flags & 2) != 0;
|
||||
id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br);
|
||||
if ((flags & 2048) != 0)
|
||||
message = StringUtil.Deserialize(br);
|
||||
else
|
||||
message = null;
|
||||
no_webpage = (flags & 2) != 0;
|
||||
id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br);
|
||||
if ((flags & 2048) != 0)
|
||||
message = StringUtil.Deserialize(br);
|
||||
else
|
||||
message = null;
|
||||
|
||||
if ((flags & 4) != 0)
|
||||
reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
reply_markup = null;
|
||||
if ((flags & 4) != 0)
|
||||
reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
reply_markup = null;
|
||||
|
||||
if ((flags & 8) != 0)
|
||||
entities = (TLVector<TLAbsMessageEntity>)ObjectUtils.DeserializeVector<TLAbsMessageEntity>(br);
|
||||
else
|
||||
entities = null;
|
||||
if ((flags & 8) != 0)
|
||||
entities = (TLVector<TLAbsMessageEntity>)ObjectUtils.DeserializeVector<TLAbsMessageEntity>(br);
|
||||
else
|
||||
entities = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
if ((flags & 2048) != 0)
|
||||
StringUtil.Serialize(message,bw);
|
||||
if ((flags & 4) != 0)
|
||||
ObjectUtils.SerializeObject(reply_markup,bw);
|
||||
if ((flags & 8) != 0)
|
||||
ObjectUtils.SerializeObject(entities,bw);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
if ((flags & 2048) != 0)
|
||||
StringUtil.Serialize(message, bw);
|
||||
if ((flags & 4) != 0)
|
||||
ObjectUtils.SerializeObject(reply_markup, bw);
|
||||
if ((flags & 8) != 0)
|
||||
ObjectUtils.SerializeObject(entities, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-829299510)]
|
||||
[TLObject(-829299510)]
|
||||
public class TLRequestEditMessage : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,70 +18,70 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool no_webpage {get;set;}
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public int id {get;set;}
|
||||
public string message {get;set;}
|
||||
public TLAbsReplyMarkup reply_markup {get;set;}
|
||||
public TLVector<TLAbsMessageEntity> entities {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool no_webpage { get; set; }
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public int id { get; set; }
|
||||
public string message { get; set; }
|
||||
public TLAbsReplyMarkup reply_markup { get; set; }
|
||||
public TLVector<TLAbsMessageEntity> entities { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = no_webpage ? (flags | 2) : (flags & ~2);
|
||||
flags = message != null ? (flags | 2048) : (flags & ~2048);
|
||||
flags = reply_markup != null ? (flags | 4) : (flags & ~4);
|
||||
flags = entities != null ? (flags | 8) : (flags & ~8);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = no_webpage ? (flags | 2) : (flags & ~2);
|
||||
flags = message != null ? (flags | 2048) : (flags & ~2048);
|
||||
flags = reply_markup != null ? (flags | 4) : (flags & ~4);
|
||||
flags = entities != null ? (flags | 8) : (flags & ~8);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
no_webpage = (flags & 2) != 0;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
id = br.ReadInt32();
|
||||
if ((flags & 2048) != 0)
|
||||
message = StringUtil.Deserialize(br);
|
||||
else
|
||||
message = null;
|
||||
no_webpage = (flags & 2) != 0;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
id = br.ReadInt32();
|
||||
if ((flags & 2048) != 0)
|
||||
message = StringUtil.Deserialize(br);
|
||||
else
|
||||
message = null;
|
||||
|
||||
if ((flags & 4) != 0)
|
||||
reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
reply_markup = null;
|
||||
if ((flags & 4) != 0)
|
||||
reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
reply_markup = null;
|
||||
|
||||
if ((flags & 8) != 0)
|
||||
entities = (TLVector<TLAbsMessageEntity>)ObjectUtils.DeserializeVector<TLAbsMessageEntity>(br);
|
||||
else
|
||||
entities = null;
|
||||
if ((flags & 8) != 0)
|
||||
entities = (TLVector<TLAbsMessageEntity>)ObjectUtils.DeserializeVector<TLAbsMessageEntity>(br);
|
||||
else
|
||||
entities = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(id);
|
||||
if ((flags & 2048) != 0)
|
||||
StringUtil.Serialize(message,bw);
|
||||
if ((flags & 4) != 0)
|
||||
ObjectUtils.SerializeObject(reply_markup,bw);
|
||||
if ((flags & 8) != 0)
|
||||
ObjectUtils.SerializeObject(entities,bw);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(id);
|
||||
if ((flags & 2048) != 0)
|
||||
StringUtil.Serialize(message, bw);
|
||||
if ((flags & 4) != 0)
|
||||
ObjectUtils.SerializeObject(reply_markup, bw);
|
||||
if ((flags & 8) != 0)
|
||||
ObjectUtils.SerializeObject(entities, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(2106086025)]
|
||||
[TLObject(2106086025)]
|
||||
public class TLRequestExportChatInvite : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int chat_id {get;set;}
|
||||
public TLAbsExportedChatInvite Response{ get; set;}
|
||||
public int chat_id { get; set; }
|
||||
public TLAbsExportedChatInvite Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(chat_id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsExportedChatInvite)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(865483769)]
|
||||
[TLObject(865483769)]
|
||||
public class TLRequestForwardMessage : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public int id {get;set;}
|
||||
public long random_id {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public int id { get; set; }
|
||||
public long random_id { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
id = br.ReadInt32();
|
||||
random_id = br.ReadInt64();
|
||||
id = br.ReadInt32();
|
||||
random_id = br.ReadInt64();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(id);
|
||||
bw.Write(random_id);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(id);
|
||||
bw.Write(random_id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1888354709)]
|
||||
[TLObject(1888354709)]
|
||||
public class TLRequestForwardMessages : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,57 +18,57 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool silent {get;set;}
|
||||
public bool background {get;set;}
|
||||
public bool with_my_score {get;set;}
|
||||
public TLAbsInputPeer from_peer {get;set;}
|
||||
public TLVector<int> id {get;set;}
|
||||
public TLVector<long> random_id {get;set;}
|
||||
public TLAbsInputPeer to_peer {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool silent { get; set; }
|
||||
public bool background { get; set; }
|
||||
public bool with_my_score { get; set; }
|
||||
public TLAbsInputPeer from_peer { get; set; }
|
||||
public TLVector<int> id { get; set; }
|
||||
public TLVector<long> random_id { get; set; }
|
||||
public TLAbsInputPeer to_peer { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = silent ? (flags | 32) : (flags & ~32);
|
||||
flags = background ? (flags | 64) : (flags & ~64);
|
||||
flags = with_my_score ? (flags | 256) : (flags & ~256);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = silent ? (flags | 32) : (flags & ~32);
|
||||
flags = background ? (flags | 64) : (flags & ~64);
|
||||
flags = with_my_score ? (flags | 256) : (flags & ~256);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
silent = (flags & 32) != 0;
|
||||
background = (flags & 64) != 0;
|
||||
with_my_score = (flags & 256) != 0;
|
||||
from_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
random_id = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
to_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
silent = (flags & 32) != 0;
|
||||
background = (flags & 64) != 0;
|
||||
with_my_score = (flags & 256) != 0;
|
||||
from_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
random_id = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
to_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
|
||||
|
||||
ObjectUtils.SerializeObject(from_peer,bw);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
ObjectUtils.SerializeObject(random_id,bw);
|
||||
ObjectUtils.SerializeObject(to_peer,bw);
|
||||
ObjectUtils.SerializeObject(from_peer, bw);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
ObjectUtils.SerializeObject(random_id, bw);
|
||||
ObjectUtils.SerializeObject(to_peer, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
48
TeleSharp.TL/TL/Messages/TLRequestGetAllChats.cs
Normal file
48
TeleSharp.TL/TL/Messages/TLRequestGetAllChats.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-341307408)]
|
||||
public class TLRequestGetAllChats : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -341307408;
|
||||
}
|
||||
}
|
||||
|
||||
public TLVector<int> except_ids { get; set; }
|
||||
public Messages.TLAbsChats Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
except_ids = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(except_ids, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1782549861)]
|
||||
[TLObject(1782549861)]
|
||||
public class TLRequestGetAllDrafts : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,28 +18,28 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(479598769)]
|
||||
[TLObject(479598769)]
|
||||
public class TLRequestGetAllStickers : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int hash {get;set;}
|
||||
public Messages.TLAbsAllStickers Response{ get; set;}
|
||||
public int hash { get; set; }
|
||||
public Messages.TLAbsAllStickers Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(hash);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsAllStickers)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsAllStickers)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1475442322)]
|
||||
[TLObject(1475442322)]
|
||||
public class TLRequestGetArchivedStickers : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,43 +18,43 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool masks {get;set;}
|
||||
public long offset_id {get;set;}
|
||||
public int limit {get;set;}
|
||||
public Messages.TLArchivedStickers Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool masks { get; set; }
|
||||
public long offset_id { get; set; }
|
||||
public int limit { get; set; }
|
||||
public Messages.TLArchivedStickers Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = masks ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = masks ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
masks = (flags & 1) != 0;
|
||||
offset_id = br.ReadInt64();
|
||||
limit = br.ReadInt32();
|
||||
masks = (flags & 1) != 0;
|
||||
offset_id = br.ReadInt64();
|
||||
limit = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
bw.Write(offset_id);
|
||||
bw.Write(limit);
|
||||
bw.Write(offset_id);
|
||||
bw.Write(limit);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLArchivedStickers)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLArchivedStickers)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-866424884)]
|
||||
[TLObject(-866424884)]
|
||||
public class TLRequestGetAttachedStickers : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputStickeredMedia media {get;set;}
|
||||
public TLVector<TLAbsStickerSetCovered> Response{ get; set;}
|
||||
public TLAbsInputStickeredMedia media { get; set; }
|
||||
public TLVector<TLAbsStickerSetCovered> Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(media,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(media, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<TLAbsStickerSetCovered>)ObjectUtils.DeserializeVector<TLAbsStickerSetCovered>(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<TLAbsStickerSetCovered>)ObjectUtils.DeserializeVector<TLAbsStickerSetCovered>(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-2130010132)]
|
||||
[TLObject(-2130010132)]
|
||||
public class TLRequestGetBotCallbackAnswer : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,52 +18,52 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool game {get;set;}
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public int msg_id {get;set;}
|
||||
public byte[] data {get;set;}
|
||||
public Messages.TLBotCallbackAnswer Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool game { get; set; }
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public int msg_id { get; set; }
|
||||
public byte[] data { get; set; }
|
||||
public Messages.TLBotCallbackAnswer Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = game ? (flags | 2) : (flags & ~2);
|
||||
flags = data != null ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = game ? (flags | 2) : (flags & ~2);
|
||||
flags = data != null ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
game = (flags & 2) != 0;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
msg_id = br.ReadInt32();
|
||||
if ((flags & 1) != 0)
|
||||
data = BytesUtil.Deserialize(br);
|
||||
else
|
||||
data = null;
|
||||
game = (flags & 2) != 0;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
msg_id = br.ReadInt32();
|
||||
if ((flags & 1) != 0)
|
||||
data = BytesUtil.Deserialize(br);
|
||||
else
|
||||
data = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(msg_id);
|
||||
if ((flags & 1) != 0)
|
||||
BytesUtil.Serialize(data,bw);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(msg_id);
|
||||
if ((flags & 1) != 0)
|
||||
BytesUtil.Serialize(data, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLBotCallbackAnswer)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLBotCallbackAnswer)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1013621127)]
|
||||
[TLObject(1013621127)]
|
||||
public class TLRequestGetChats : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<int> id {get;set;}
|
||||
public Messages.TLChats Response{ get; set;}
|
||||
public TLVector<int> id { get; set; }
|
||||
public Messages.TLAbsChats Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLChats)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
54
TeleSharp.TL/TL/Messages/TLRequestGetCommonChats.cs
Normal file
54
TeleSharp.TL/TL/Messages/TLRequestGetCommonChats.cs
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(218777796)]
|
||||
public class TLRequestGetCommonChats : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 218777796;
|
||||
}
|
||||
}
|
||||
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public int max_id { get; set; }
|
||||
public int limit { get; set; }
|
||||
public Messages.TLAbsChats Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
max_id = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
bw.Write(max_id);
|
||||
bw.Write(limit);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(651135312)]
|
||||
[TLObject(651135312)]
|
||||
public class TLRequestGetDhConfig : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int version {get;set;}
|
||||
public int random_length {get;set;}
|
||||
public Messages.TLAbsDhConfig Response{ get; set;}
|
||||
public int version { get; set; }
|
||||
public int random_length { get; set; }
|
||||
public Messages.TLAbsDhConfig Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
version = br.ReadInt32();
|
||||
random_length = br.ReadInt32();
|
||||
random_length = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(version);
|
||||
bw.Write(random_length);
|
||||
bw.Write(random_length);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsDhConfig)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsDhConfig)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,51 +7,60 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1799878989)]
|
||||
[TLObject(421243333)]
|
||||
public class TLRequestGetDialogs : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 1799878989;
|
||||
return 421243333;
|
||||
}
|
||||
}
|
||||
|
||||
public int offset_date {get;set;}
|
||||
public int offset_id {get;set;}
|
||||
public TLAbsInputPeer offset_peer {get;set;}
|
||||
public int limit {get;set;}
|
||||
public Messages.TLAbsDialogs Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool exclude_pinned { get; set; }
|
||||
public int offset_date { get; set; }
|
||||
public int offset_id { get; set; }
|
||||
public TLAbsInputPeer offset_peer { get; set; }
|
||||
public int limit { get; set; }
|
||||
public Messages.TLAbsDialogs Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = exclude_pinned ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
exclude_pinned = (flags & 1) != 0;
|
||||
offset_date = br.ReadInt32();
|
||||
offset_id = br.ReadInt32();
|
||||
offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
limit = br.ReadInt32();
|
||||
offset_id = br.ReadInt32();
|
||||
offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
limit = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
|
||||
bw.Write(offset_date);
|
||||
bw.Write(offset_id);
|
||||
ObjectUtils.SerializeObject(offset_peer,bw);
|
||||
bw.Write(limit);
|
||||
bw.Write(offset_id);
|
||||
ObjectUtils.SerializeObject(offset_peer, bw);
|
||||
bw.Write(limit);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsDialogs)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsDialogs)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(864953444)]
|
||||
[TLObject(864953444)]
|
||||
public class TLRequestGetDocumentByHash : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public byte[] sha256 {get;set;}
|
||||
public int size {get;set;}
|
||||
public string mime_type {get;set;}
|
||||
public TLAbsDocument Response{ get; set;}
|
||||
public byte[] sha256 { get; set; }
|
||||
public int size { get; set; }
|
||||
public string mime_type { get; set; }
|
||||
public TLAbsDocument Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
sha256 = BytesUtil.Deserialize(br);
|
||||
size = br.ReadInt32();
|
||||
mime_type = StringUtil.Deserialize(br);
|
||||
size = br.ReadInt32();
|
||||
mime_type = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(sha256,bw);
|
||||
bw.Write(size);
|
||||
StringUtil.Serialize(mime_type,bw);
|
||||
bw.Write(Constructor);
|
||||
BytesUtil.Serialize(sha256, bw);
|
||||
bw.Write(size);
|
||||
StringUtil.Serialize(mime_type, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsDocument)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsDocument)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(766298703)]
|
||||
[TLObject(766298703)]
|
||||
public class TLRequestGetFeaturedStickers : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int hash {get;set;}
|
||||
public Messages.TLAbsFeaturedStickers Response{ get; set;}
|
||||
public int hash { get; set; }
|
||||
public Messages.TLAbsFeaturedStickers Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(hash);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsFeaturedStickers)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsFeaturedStickers)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(998448230)]
|
||||
[TLObject(998448230)]
|
||||
public class TLRequestGetFullChat : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int chat_id {get;set;}
|
||||
public Messages.TLChatFull Response{ get; set;}
|
||||
public int chat_id { get; set; }
|
||||
public Messages.TLChatFull Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(chat_id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLChatFull)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLChatFull)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-400399203)]
|
||||
[TLObject(-400399203)]
|
||||
public class TLRequestGetGameHighScores : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public int id {get;set;}
|
||||
public TLAbsInputUser user_id {get;set;}
|
||||
public Messages.TLHighScores Response{ get; set;}
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public int id { get; set; }
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public Messages.TLHighScores Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
id = br.ReadInt32();
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
id = br.ReadInt32();
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(id);
|
||||
ObjectUtils.SerializeObject(user_id,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(id);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLHighScores)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLHighScores)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1347868602)]
|
||||
[TLObject(-1347868602)]
|
||||
public class TLRequestGetHistory : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,49 +18,49 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public int offset_id {get;set;}
|
||||
public int offset_date {get;set;}
|
||||
public int add_offset {get;set;}
|
||||
public int limit {get;set;}
|
||||
public int max_id {get;set;}
|
||||
public int min_id {get;set;}
|
||||
public Messages.TLAbsMessages Response{ get; set;}
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public int offset_id { get; set; }
|
||||
public int offset_date { get; set; }
|
||||
public int add_offset { get; set; }
|
||||
public int limit { get; set; }
|
||||
public int max_id { get; set; }
|
||||
public int min_id { get; set; }
|
||||
public Messages.TLAbsMessages Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
offset_id = br.ReadInt32();
|
||||
offset_date = br.ReadInt32();
|
||||
add_offset = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
max_id = br.ReadInt32();
|
||||
min_id = br.ReadInt32();
|
||||
offset_id = br.ReadInt32();
|
||||
offset_date = br.ReadInt32();
|
||||
add_offset = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
max_id = br.ReadInt32();
|
||||
min_id = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(offset_id);
|
||||
bw.Write(offset_date);
|
||||
bw.Write(add_offset);
|
||||
bw.Write(limit);
|
||||
bw.Write(max_id);
|
||||
bw.Write(min_id);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(offset_id);
|
||||
bw.Write(offset_date);
|
||||
bw.Write(add_offset);
|
||||
bw.Write(limit);
|
||||
bw.Write(max_id);
|
||||
bw.Write(min_id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1364105629)]
|
||||
[TLObject(1364105629)]
|
||||
public class TLRequestGetInlineBotResults : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,54 +18,54 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public TLAbsInputUser bot {get;set;}
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public TLAbsInputGeoPoint geo_point {get;set;}
|
||||
public string query {get;set;}
|
||||
public string offset {get;set;}
|
||||
public Messages.TLBotResults Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public TLAbsInputUser bot { get; set; }
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public TLAbsInputGeoPoint geo_point { get; set; }
|
||||
public string query { get; set; }
|
||||
public string offset { get; set; }
|
||||
public Messages.TLBotResults Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = geo_point != null ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = geo_point != null ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
bot = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
if ((flags & 1) != 0)
|
||||
geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
geo_point = null;
|
||||
bot = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
if ((flags & 1) != 0)
|
||||
geo_point = (TLAbsInputGeoPoint)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
geo_point = null;
|
||||
|
||||
query = StringUtil.Deserialize(br);
|
||||
offset = StringUtil.Deserialize(br);
|
||||
query = StringUtil.Deserialize(br);
|
||||
offset = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
ObjectUtils.SerializeObject(bot,bw);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
if ((flags & 1) != 0)
|
||||
ObjectUtils.SerializeObject(geo_point,bw);
|
||||
StringUtil.Serialize(query,bw);
|
||||
StringUtil.Serialize(offset,bw);
|
||||
bw.Write(flags);
|
||||
ObjectUtils.SerializeObject(bot, bw);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
if ((flags & 1) != 0)
|
||||
ObjectUtils.SerializeObject(geo_point, bw);
|
||||
StringUtil.Serialize(query, bw);
|
||||
StringUtil.Serialize(offset, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLBotResults)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLBotResults)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(258170395)]
|
||||
[TLObject(258170395)]
|
||||
public class TLRequestGetInlineGameHighScores : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLInputBotInlineMessageID id {get;set;}
|
||||
public TLAbsInputUser user_id {get;set;}
|
||||
public Messages.TLHighScores Response{ get; set;}
|
||||
public TLInputBotInlineMessageID id { get; set; }
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public Messages.TLHighScores Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
ObjectUtils.SerializeObject(user_id,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLHighScores)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLHighScores)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1706608543)]
|
||||
[TLObject(1706608543)]
|
||||
public class TLRequestGetMaskStickers : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int hash {get;set;}
|
||||
public Messages.TLAbsAllStickers Response{ get; set;}
|
||||
public int hash { get; set; }
|
||||
public Messages.TLAbsAllStickers Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(hash);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsAllStickers)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsAllStickers)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-39416522)]
|
||||
[TLObject(-39416522)]
|
||||
public class TLRequestGetMessageEditData : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public int id {get;set;}
|
||||
public Messages.TLMessageEditData Response{ get; set;}
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public int id { get; set; }
|
||||
public Messages.TLMessageEditData Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
id = br.ReadInt32();
|
||||
id = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(id);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLMessageEditData)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLMessageEditData)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1109588596)]
|
||||
[TLObject(1109588596)]
|
||||
public class TLRequestGetMessages : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<int> id {get;set;}
|
||||
public Messages.TLAbsMessages Response{ get; set;}
|
||||
public TLVector<int> id { get; set; }
|
||||
public Messages.TLAbsMessages Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-993483427)]
|
||||
[TLObject(-993483427)]
|
||||
public class TLRequestGetMessagesViews : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public TLVector<int> id {get;set;}
|
||||
public bool increment {get;set;}
|
||||
public TLVector<int> Response{ get; set;}
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public TLVector<int> id { get; set; }
|
||||
public bool increment { get; set; }
|
||||
public TLVector<int> Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
increment = BoolUtil.Deserialize(br);
|
||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
increment = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
BoolUtil.Serialize(increment,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
BoolUtil.Serialize(increment, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(764901049)]
|
||||
[TLObject(764901049)]
|
||||
public class TLRequestGetPeerDialogs : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<TLAbsInputPeer> peers {get;set;}
|
||||
public Messages.TLPeerDialogs Response{ get; set;}
|
||||
public TLVector<TLAbsInputPeer> peers { get; set; }
|
||||
public Messages.TLPeerDialogs Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peers,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peers, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLPeerDialogs)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLPeerDialogs)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(913498268)]
|
||||
[TLObject(913498268)]
|
||||
public class TLRequestGetPeerSettings : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public TLPeerSettings Response{ get; set;}
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public TLPeerSettings Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLPeerSettings)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLPeerSettings)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
45
TeleSharp.TL/TL/Messages/TLRequestGetPinnedDialogs.cs
Normal file
45
TeleSharp.TL/TL/Messages/TLRequestGetPinnedDialogs.cs
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-497756594)]
|
||||
public class TLRequestGetPinnedDialogs : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -497756594;
|
||||
}
|
||||
}
|
||||
|
||||
public Messages.TLPeerDialogs Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLPeerDialogs)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1587647177)]
|
||||
[TLObject(1587647177)]
|
||||
public class TLRequestGetRecentStickers : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,40 +18,40 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool attached {get;set;}
|
||||
public int hash {get;set;}
|
||||
public Messages.TLAbsRecentStickers Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool attached { get; set; }
|
||||
public int hash { get; set; }
|
||||
public Messages.TLAbsRecentStickers Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = attached ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = attached ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
attached = (flags & 1) != 0;
|
||||
hash = br.ReadInt32();
|
||||
attached = (flags & 1) != 0;
|
||||
hash = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
bw.Write(hash);
|
||||
bw.Write(hash);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsRecentStickers)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsRecentStickers)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-2084618926)]
|
||||
[TLObject(-2084618926)]
|
||||
public class TLRequestGetSavedGifs : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int hash {get;set;}
|
||||
public Messages.TLAbsSavedGifs Response{ get; set;}
|
||||
public int hash { get; set; }
|
||||
public Messages.TLAbsSavedGifs Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(hash);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsSavedGifs)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsSavedGifs)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(639215886)]
|
||||
[TLObject(639215886)]
|
||||
public class TLRequestGetStickerSet : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputStickerSet stickerset {get;set;}
|
||||
public Messages.TLStickerSet Response{ get; set;}
|
||||
public TLAbsInputStickerSet stickerset { get; set; }
|
||||
public Messages.TLStickerSet Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(stickerset,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(stickerset, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLStickerSet)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLStickerSet)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
51
TeleSharp.TL/TL/Messages/TLRequestGetWebPage.cs
Normal file
51
TeleSharp.TL/TL/Messages/TLRequestGetWebPage.cs
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(852135825)]
|
||||
public class TLRequestGetWebPage : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 852135825;
|
||||
}
|
||||
}
|
||||
|
||||
public string url { get; set; }
|
||||
public int hash { get; set; }
|
||||
public TLAbsWebPage Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
url = StringUtil.Deserialize(br);
|
||||
hash = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(url, bw);
|
||||
bw.Write(hash);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsWebPage)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(623001124)]
|
||||
[TLObject(623001124)]
|
||||
public class TLRequestGetWebPagePreview : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public string message {get;set;}
|
||||
public TLAbsMessageMedia Response{ get; set;}
|
||||
public string message { get; set; }
|
||||
public TLAbsMessageMedia Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(message,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(message, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1460572005)]
|
||||
[TLObject(-1460572005)]
|
||||
public class TLRequestHideReportSpam : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1817183516)]
|
||||
[TLObject(1817183516)]
|
||||
public class TLRequestImportChatInvite : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public string hash {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public string hash { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(hash,bw);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(hash, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-946871200)]
|
||||
[TLObject(-946871200)]
|
||||
public class TLRequestInstallStickerSet : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputStickerSet stickerset {get;set;}
|
||||
public bool archived {get;set;}
|
||||
public Messages.TLAbsStickerSetInstallResult Response{ get; set;}
|
||||
public TLAbsInputStickerSet stickerset { get; set; }
|
||||
public bool archived { get; set; }
|
||||
public Messages.TLAbsStickerSetInstallResult Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
stickerset = (TLAbsInputStickerSet)ObjectUtils.DeserializeObject(br);
|
||||
archived = BoolUtil.Deserialize(br);
|
||||
archived = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(stickerset,bw);
|
||||
BoolUtil.Serialize(archived,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(stickerset, bw);
|
||||
BoolUtil.Serialize(archived, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsStickerSetInstallResult)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsStickerSetInstallResult)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(363051235)]
|
||||
[TLObject(363051235)]
|
||||
public class TLRequestMigrateChat : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int chat_id {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public int chat_id { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(chat_id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(2135648522)]
|
||||
[TLObject(2135648522)]
|
||||
public class TLRequestReadEncryptedHistory : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLInputEncryptedChat peer {get;set;}
|
||||
public int max_date {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLInputEncryptedChat peer { get; set; }
|
||||
public int max_date { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br);
|
||||
max_date = br.ReadInt32();
|
||||
max_date = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(max_date);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(max_date);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1527873830)]
|
||||
[TLObject(1527873830)]
|
||||
public class TLRequestReadFeaturedStickers : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<long> id {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLVector<long> id { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(238054714)]
|
||||
[TLObject(238054714)]
|
||||
public class TLRequestReadHistory : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public int max_id {get;set;}
|
||||
public Messages.TLAffectedMessages Response{ get; set;}
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public int max_id { get; set; }
|
||||
public Messages.TLAffectedMessages Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
max_id = br.ReadInt32();
|
||||
max_id = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(max_id);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(max_id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(916930423)]
|
||||
[TLObject(916930423)]
|
||||
public class TLRequestReadMessageContents : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLVector<int> id {get;set;}
|
||||
public Messages.TLAffectedMessages Response{ get; set;}
|
||||
public TLVector<int> id { get; set; }
|
||||
public Messages.TLAffectedMessages Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAffectedMessages)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(94983360)]
|
||||
[TLObject(94983360)]
|
||||
public class TLRequestReceivedMessages : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int max_id {get;set;}
|
||||
public TLVector<TLReceivedNotifyMessage> Response{ get; set;}
|
||||
public int max_id { get; set; }
|
||||
public TLVector<TLReceivedNotifyMessage> Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(max_id);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<TLReceivedNotifyMessage>)ObjectUtils.DeserializeVector<TLReceivedNotifyMessage>(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<TLReceivedNotifyMessage>)ObjectUtils.DeserializeVector<TLReceivedNotifyMessage>(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1436924774)]
|
||||
[TLObject(1436924774)]
|
||||
public class TLRequestReceivedQueue : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int max_qts {get;set;}
|
||||
public TLVector<long> Response{ get; set;}
|
||||
public int max_qts { get; set; }
|
||||
public TLVector<long> Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
bw.Write(max_qts);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
57
TeleSharp.TL/TL/Messages/TLRequestReorderPinnedDialogs.cs
Normal file
57
TeleSharp.TL/TL/Messages/TLRequestReorderPinnedDialogs.cs
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1784678844)]
|
||||
public class TLRequestReorderPinnedDialogs : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -1784678844;
|
||||
}
|
||||
}
|
||||
|
||||
public int flags { get; set; }
|
||||
public bool force { get; set; }
|
||||
public TLVector<TLAbsInputPeer> order { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = force ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
force = (flags & 1) != 0;
|
||||
order = (TLVector<TLAbsInputPeer>)ObjectUtils.DeserializeVector<TLAbsInputPeer>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
|
||||
ObjectUtils.SerializeObject(order, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(2016638777)]
|
||||
[TLObject(2016638777)]
|
||||
public class TLRequestReorderStickerSets : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,40 +18,40 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool masks {get;set;}
|
||||
public TLVector<long> order {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool masks { get; set; }
|
||||
public TLVector<long> order { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = masks ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = masks ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
masks = (flags & 1) != 0;
|
||||
order = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
masks = (flags & 1) != 0;
|
||||
order = (TLVector<long>)ObjectUtils.DeserializeVector<long>(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
ObjectUtils.SerializeObject(order,bw);
|
||||
ObjectUtils.SerializeObject(order, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
48
TeleSharp.TL/TL/Messages/TLRequestReportEncryptedSpam.cs
Normal file
48
TeleSharp.TL/TL/Messages/TLRequestReportEncryptedSpam.cs
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(1259113487)]
|
||||
public class TLRequestReportEncryptedSpam : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return 1259113487;
|
||||
}
|
||||
}
|
||||
|
||||
public TLInputEncryptedChat peer { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-820669733)]
|
||||
[TLObject(-820669733)]
|
||||
public class TLRequestReportSpam : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,14 +18,14 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
|
|
@ -35,14 +35,14 @@ namespace TeleSharp.TL.Messages
|
|||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-162681021)]
|
||||
[TLObject(-162681021)]
|
||||
public class TLRequestRequestEncryption : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputUser user_id {get;set;}
|
||||
public int random_id {get;set;}
|
||||
public byte[] g_a {get;set;}
|
||||
public TLAbsEncryptedChat Response{ get; set;}
|
||||
public TLAbsInputUser user_id { get; set; }
|
||||
public int random_id { get; set; }
|
||||
public byte[] g_a { get; set; }
|
||||
public TLAbsEncryptedChat Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||
random_id = br.ReadInt32();
|
||||
g_a = BytesUtil.Deserialize(br);
|
||||
random_id = br.ReadInt32();
|
||||
g_a = BytesUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(user_id,bw);
|
||||
bw.Write(random_id);
|
||||
BytesUtil.Serialize(g_a,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(user_id, bw);
|
||||
bw.Write(random_id);
|
||||
BytesUtil.Serialize(g_a, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsEncryptedChat)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1137057461)]
|
||||
[TLObject(-1137057461)]
|
||||
public class TLRequestSaveDraft : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,61 +18,61 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool no_webpage {get;set;}
|
||||
public int? reply_to_msg_id {get;set;}
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public string message {get;set;}
|
||||
public TLVector<TLAbsMessageEntity> entities {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool no_webpage { get; set; }
|
||||
public int? reply_to_msg_id { get; set; }
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public string message { get; set; }
|
||||
public TLVector<TLAbsMessageEntity> entities { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = no_webpage ? (flags | 2) : (flags & ~2);
|
||||
flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1);
|
||||
flags = entities != null ? (flags | 8) : (flags & ~8);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = no_webpage ? (flags | 2) : (flags & ~2);
|
||||
flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1);
|
||||
flags = entities != null ? (flags | 8) : (flags & ~8);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
no_webpage = (flags & 2) != 0;
|
||||
if ((flags & 1) != 0)
|
||||
reply_to_msg_id = br.ReadInt32();
|
||||
else
|
||||
reply_to_msg_id = null;
|
||||
no_webpage = (flags & 2) != 0;
|
||||
if ((flags & 1) != 0)
|
||||
reply_to_msg_id = br.ReadInt32();
|
||||
else
|
||||
reply_to_msg_id = null;
|
||||
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
message = StringUtil.Deserialize(br);
|
||||
if ((flags & 8) != 0)
|
||||
entities = (TLVector<TLAbsMessageEntity>)ObjectUtils.DeserializeVector<TLAbsMessageEntity>(br);
|
||||
else
|
||||
entities = null;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
message = StringUtil.Deserialize(br);
|
||||
if ((flags & 8) != 0)
|
||||
entities = (TLVector<TLAbsMessageEntity>)ObjectUtils.DeserializeVector<TLAbsMessageEntity>(br);
|
||||
else
|
||||
entities = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
if ((flags & 1) != 0)
|
||||
bw.Write(reply_to_msg_id.Value);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
StringUtil.Serialize(message,bw);
|
||||
if ((flags & 8) != 0)
|
||||
ObjectUtils.SerializeObject(entities,bw);
|
||||
if ((flags & 1) != 0)
|
||||
bw.Write(reply_to_msg_id.Value);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
StringUtil.Serialize(message, bw);
|
||||
if ((flags & 8) != 0)
|
||||
ObjectUtils.SerializeObject(entities, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(846868683)]
|
||||
[TLObject(846868683)]
|
||||
public class TLRequestSaveGif : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLAbsInputDocument id {get;set;}
|
||||
public bool unsave {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public TLAbsInputDocument id { get; set; }
|
||||
public bool unsave { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
id = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br);
|
||||
unsave = BoolUtil.Deserialize(br);
|
||||
unsave = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
BoolUtil.Serialize(unsave,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
BoolUtil.Serialize(unsave, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(958863608)]
|
||||
[TLObject(958863608)]
|
||||
public class TLRequestSaveRecentSticker : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,43 +18,43 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool attached {get;set;}
|
||||
public TLAbsInputDocument id {get;set;}
|
||||
public bool unsave {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool attached { get; set; }
|
||||
public TLAbsInputDocument id { get; set; }
|
||||
public bool unsave { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = attached ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = attached ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
attached = (flags & 1) != 0;
|
||||
id = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br);
|
||||
unsave = BoolUtil.Deserialize(br);
|
||||
attached = (flags & 1) != 0;
|
||||
id = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br);
|
||||
unsave = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
ObjectUtils.SerializeObject(id,bw);
|
||||
BoolUtil.Serialize(unsave,bw);
|
||||
ObjectUtils.SerializeObject(id, bw);
|
||||
BoolUtil.Serialize(unsave, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-732523960)]
|
||||
[TLObject(-732523960)]
|
||||
public class TLRequestSearch : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,57 +18,57 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public string q {get;set;}
|
||||
public TLAbsMessagesFilter filter {get;set;}
|
||||
public int min_date {get;set;}
|
||||
public int max_date {get;set;}
|
||||
public int offset {get;set;}
|
||||
public int max_id {get;set;}
|
||||
public int limit {get;set;}
|
||||
public Messages.TLAbsMessages Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public string q { get; set; }
|
||||
public TLAbsMessagesFilter filter { get; set; }
|
||||
public int min_date { get; set; }
|
||||
public int max_date { get; set; }
|
||||
public int offset { get; set; }
|
||||
public int max_id { get; set; }
|
||||
public int limit { get; set; }
|
||||
public Messages.TLAbsMessages Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
q = StringUtil.Deserialize(br);
|
||||
filter = (TLAbsMessagesFilter)ObjectUtils.DeserializeObject(br);
|
||||
min_date = br.ReadInt32();
|
||||
max_date = br.ReadInt32();
|
||||
offset = br.ReadInt32();
|
||||
max_id = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
q = StringUtil.Deserialize(br);
|
||||
filter = (TLAbsMessagesFilter)ObjectUtils.DeserializeObject(br);
|
||||
min_date = br.ReadInt32();
|
||||
max_date = br.ReadInt32();
|
||||
offset = br.ReadInt32();
|
||||
max_id = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
StringUtil.Serialize(q,bw);
|
||||
ObjectUtils.SerializeObject(filter,bw);
|
||||
bw.Write(min_date);
|
||||
bw.Write(max_date);
|
||||
bw.Write(offset);
|
||||
bw.Write(max_id);
|
||||
bw.Write(limit);
|
||||
bw.Write(flags);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
StringUtil.Serialize(q, bw);
|
||||
ObjectUtils.SerializeObject(filter, bw);
|
||||
bw.Write(min_date);
|
||||
bw.Write(max_date);
|
||||
bw.Write(offset);
|
||||
bw.Write(max_id);
|
||||
bw.Write(limit);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1080395925)]
|
||||
[TLObject(-1080395925)]
|
||||
public class TLRequestSearchGifs : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,34 +18,34 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public string q {get;set;}
|
||||
public int offset {get;set;}
|
||||
public Messages.TLFoundGifs Response{ get; set;}
|
||||
public string q { get; set; }
|
||||
public int offset { get; set; }
|
||||
public Messages.TLFoundGifs Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
q = StringUtil.Deserialize(br);
|
||||
offset = br.ReadInt32();
|
||||
offset = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(q,bw);
|
||||
bw.Write(offset);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(q, bw);
|
||||
bw.Write(offset);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLFoundGifs)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLFoundGifs)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1640190800)]
|
||||
[TLObject(-1640190800)]
|
||||
public class TLRequestSearchGlobal : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,43 +18,43 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public string q {get;set;}
|
||||
public int offset_date {get;set;}
|
||||
public TLAbsInputPeer offset_peer {get;set;}
|
||||
public int offset_id {get;set;}
|
||||
public int limit {get;set;}
|
||||
public Messages.TLAbsMessages Response{ get; set;}
|
||||
public string q { get; set; }
|
||||
public int offset_date { get; set; }
|
||||
public TLAbsInputPeer offset_peer { get; set; }
|
||||
public int offset_id { get; set; }
|
||||
public int limit { get; set; }
|
||||
public Messages.TLAbsMessages Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
q = StringUtil.Deserialize(br);
|
||||
offset_date = br.ReadInt32();
|
||||
offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
offset_id = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
offset_date = br.ReadInt32();
|
||||
offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
offset_id = br.ReadInt32();
|
||||
limit = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(q,bw);
|
||||
bw.Write(offset_date);
|
||||
ObjectUtils.SerializeObject(offset_peer,bw);
|
||||
bw.Write(offset_id);
|
||||
bw.Write(limit);
|
||||
bw.Write(Constructor);
|
||||
StringUtil.Serialize(q, bw);
|
||||
bw.Write(offset_date);
|
||||
ObjectUtils.SerializeObject(offset_peer, bw);
|
||||
bw.Write(offset_id);
|
||||
bw.Write(limit);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsMessages)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1451792525)]
|
||||
[TLObject(-1451792525)]
|
||||
public class TLRequestSendEncrypted : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLInputEncryptedChat peer {get;set;}
|
||||
public long random_id {get;set;}
|
||||
public byte[] data {get;set;}
|
||||
public Messages.TLAbsSentEncryptedMessage Response{ get; set;}
|
||||
public TLInputEncryptedChat peer { get; set; }
|
||||
public long random_id { get; set; }
|
||||
public byte[] data { get; set; }
|
||||
public Messages.TLAbsSentEncryptedMessage Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br);
|
||||
random_id = br.ReadInt64();
|
||||
data = BytesUtil.Deserialize(br);
|
||||
random_id = br.ReadInt64();
|
||||
data = BytesUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(random_id);
|
||||
BytesUtil.Serialize(data,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(random_id);
|
||||
BytesUtil.Serialize(data, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1701831834)]
|
||||
[TLObject(-1701831834)]
|
||||
public class TLRequestSendEncryptedFile : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,40 +18,40 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLInputEncryptedChat peer {get;set;}
|
||||
public long random_id {get;set;}
|
||||
public byte[] data {get;set;}
|
||||
public TLAbsInputEncryptedFile file {get;set;}
|
||||
public Messages.TLAbsSentEncryptedMessage Response{ get; set;}
|
||||
public TLInputEncryptedChat peer { get; set; }
|
||||
public long random_id { get; set; }
|
||||
public byte[] data { get; set; }
|
||||
public TLAbsInputEncryptedFile file { get; set; }
|
||||
public Messages.TLAbsSentEncryptedMessage Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br);
|
||||
random_id = br.ReadInt64();
|
||||
data = BytesUtil.Deserialize(br);
|
||||
file = (TLAbsInputEncryptedFile)ObjectUtils.DeserializeObject(br);
|
||||
random_id = br.ReadInt64();
|
||||
data = BytesUtil.Deserialize(br);
|
||||
file = (TLAbsInputEncryptedFile)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(random_id);
|
||||
BytesUtil.Serialize(data,bw);
|
||||
ObjectUtils.SerializeObject(file,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(random_id);
|
||||
BytesUtil.Serialize(data, bw);
|
||||
ObjectUtils.SerializeObject(file, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(852769188)]
|
||||
[TLObject(852769188)]
|
||||
public class TLRequestSendEncryptedService : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,37 +18,37 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public TLInputEncryptedChat peer {get;set;}
|
||||
public long random_id {get;set;}
|
||||
public byte[] data {get;set;}
|
||||
public Messages.TLAbsSentEncryptedMessage Response{ get; set;}
|
||||
public TLInputEncryptedChat peer { get; set; }
|
||||
public long random_id { get; set; }
|
||||
public byte[] data { get; set; }
|
||||
public Messages.TLAbsSentEncryptedMessage Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
public void ComputeFlags()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
peer = (TLInputEncryptedChat)ObjectUtils.DeserializeObject(br);
|
||||
random_id = br.ReadInt64();
|
||||
data = BytesUtil.Deserialize(br);
|
||||
random_id = br.ReadInt64();
|
||||
data = BytesUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
bw.Write(random_id);
|
||||
BytesUtil.Serialize(data,bw);
|
||||
bw.Write(Constructor);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
bw.Write(random_id);
|
||||
BytesUtil.Serialize(data, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (Messages.TLAbsSentEncryptedMessage)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-1318189314)]
|
||||
[TLObject(-1318189314)]
|
||||
public class TLRequestSendInlineBotResult : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,66 +18,66 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool silent {get;set;}
|
||||
public bool background {get;set;}
|
||||
public bool clear_draft {get;set;}
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public int? reply_to_msg_id {get;set;}
|
||||
public long random_id {get;set;}
|
||||
public long query_id {get;set;}
|
||||
public string id {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool silent { get; set; }
|
||||
public bool background { get; set; }
|
||||
public bool clear_draft { get; set; }
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public int? reply_to_msg_id { get; set; }
|
||||
public long random_id { get; set; }
|
||||
public long query_id { get; set; }
|
||||
public string id { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = silent ? (flags | 32) : (flags & ~32);
|
||||
flags = background ? (flags | 64) : (flags & ~64);
|
||||
flags = clear_draft ? (flags | 128) : (flags & ~128);
|
||||
flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = silent ? (flags | 32) : (flags & ~32);
|
||||
flags = background ? (flags | 64) : (flags & ~64);
|
||||
flags = clear_draft ? (flags | 128) : (flags & ~128);
|
||||
flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
silent = (flags & 32) != 0;
|
||||
background = (flags & 64) != 0;
|
||||
clear_draft = (flags & 128) != 0;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
if ((flags & 1) != 0)
|
||||
reply_to_msg_id = br.ReadInt32();
|
||||
else
|
||||
reply_to_msg_id = null;
|
||||
silent = (flags & 32) != 0;
|
||||
background = (flags & 64) != 0;
|
||||
clear_draft = (flags & 128) != 0;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
if ((flags & 1) != 0)
|
||||
reply_to_msg_id = br.ReadInt32();
|
||||
else
|
||||
reply_to_msg_id = null;
|
||||
|
||||
random_id = br.ReadInt64();
|
||||
query_id = br.ReadInt64();
|
||||
id = StringUtil.Deserialize(br);
|
||||
random_id = br.ReadInt64();
|
||||
query_id = br.ReadInt64();
|
||||
id = StringUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
|
||||
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
if ((flags & 1) != 0)
|
||||
bw.Write(reply_to_msg_id.Value);
|
||||
bw.Write(random_id);
|
||||
bw.Write(query_id);
|
||||
StringUtil.Serialize(id,bw);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
if ((flags & 1) != 0)
|
||||
bw.Write(reply_to_msg_id.Value);
|
||||
bw.Write(random_id);
|
||||
bw.Write(query_id);
|
||||
StringUtil.Serialize(id, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-923703407)]
|
||||
[TLObject(-923703407)]
|
||||
public class TLRequestSendMedia : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,72 +18,72 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool silent {get;set;}
|
||||
public bool background {get;set;}
|
||||
public bool clear_draft {get;set;}
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public int? reply_to_msg_id {get;set;}
|
||||
public TLAbsInputMedia media {get;set;}
|
||||
public long random_id {get;set;}
|
||||
public TLAbsReplyMarkup reply_markup {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool silent { get; set; }
|
||||
public bool background { get; set; }
|
||||
public bool clear_draft { get; set; }
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public int? reply_to_msg_id { get; set; }
|
||||
public TLAbsInputMedia media { get; set; }
|
||||
public long random_id { get; set; }
|
||||
public TLAbsReplyMarkup reply_markup { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = silent ? (flags | 32) : (flags & ~32);
|
||||
flags = background ? (flags | 64) : (flags & ~64);
|
||||
flags = clear_draft ? (flags | 128) : (flags & ~128);
|
||||
flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1);
|
||||
flags = reply_markup != null ? (flags | 4) : (flags & ~4);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = silent ? (flags | 32) : (flags & ~32);
|
||||
flags = background ? (flags | 64) : (flags & ~64);
|
||||
flags = clear_draft ? (flags | 128) : (flags & ~128);
|
||||
flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1);
|
||||
flags = reply_markup != null ? (flags | 4) : (flags & ~4);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
silent = (flags & 32) != 0;
|
||||
background = (flags & 64) != 0;
|
||||
clear_draft = (flags & 128) != 0;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
if ((flags & 1) != 0)
|
||||
reply_to_msg_id = br.ReadInt32();
|
||||
else
|
||||
reply_to_msg_id = null;
|
||||
silent = (flags & 32) != 0;
|
||||
background = (flags & 64) != 0;
|
||||
clear_draft = (flags & 128) != 0;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
if ((flags & 1) != 0)
|
||||
reply_to_msg_id = br.ReadInt32();
|
||||
else
|
||||
reply_to_msg_id = null;
|
||||
|
||||
media = (TLAbsInputMedia)ObjectUtils.DeserializeObject(br);
|
||||
random_id = br.ReadInt64();
|
||||
if ((flags & 4) != 0)
|
||||
reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
reply_markup = null;
|
||||
media = (TLAbsInputMedia)ObjectUtils.DeserializeObject(br);
|
||||
random_id = br.ReadInt64();
|
||||
if ((flags & 4) != 0)
|
||||
reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
reply_markup = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
|
||||
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
if ((flags & 1) != 0)
|
||||
bw.Write(reply_to_msg_id.Value);
|
||||
ObjectUtils.SerializeObject(media,bw);
|
||||
bw.Write(random_id);
|
||||
if ((flags & 4) != 0)
|
||||
ObjectUtils.SerializeObject(reply_markup,bw);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
if ((flags & 1) != 0)
|
||||
bw.Write(reply_to_msg_id.Value);
|
||||
ObjectUtils.SerializeObject(media, bw);
|
||||
bw.Write(random_id);
|
||||
if ((flags & 4) != 0)
|
||||
ObjectUtils.SerializeObject(reply_markup, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-91733382)]
|
||||
[TLObject(-91733382)]
|
||||
public class TLRequestSendMessage : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
|
|
@ -18,85 +18,85 @@ namespace TeleSharp.TL.Messages
|
|||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool no_webpage {get;set;}
|
||||
public bool silent {get;set;}
|
||||
public bool background {get;set;}
|
||||
public bool clear_draft {get;set;}
|
||||
public TLAbsInputPeer peer {get;set;}
|
||||
public int? reply_to_msg_id {get;set;}
|
||||
public string message {get;set;}
|
||||
public long random_id {get;set;}
|
||||
public TLAbsReplyMarkup reply_markup {get;set;}
|
||||
public TLVector<TLAbsMessageEntity> entities {get;set;}
|
||||
public TLAbsUpdates Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool no_webpage { get; set; }
|
||||
public bool silent { get; set; }
|
||||
public bool background { get; set; }
|
||||
public bool clear_draft { get; set; }
|
||||
public TLAbsInputPeer peer { get; set; }
|
||||
public int? reply_to_msg_id { get; set; }
|
||||
public string message { get; set; }
|
||||
public long random_id { get; set; }
|
||||
public TLAbsReplyMarkup reply_markup { get; set; }
|
||||
public TLVector<TLAbsMessageEntity> entities { get; set; }
|
||||
public TLAbsUpdates Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = no_webpage ? (flags | 2) : (flags & ~2);
|
||||
flags = silent ? (flags | 32) : (flags & ~32);
|
||||
flags = background ? (flags | 64) : (flags & ~64);
|
||||
flags = clear_draft ? (flags | 128) : (flags & ~128);
|
||||
flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1);
|
||||
flags = reply_markup != null ? (flags | 4) : (flags & ~4);
|
||||
flags = entities != null ? (flags | 8) : (flags & ~8);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = no_webpage ? (flags | 2) : (flags & ~2);
|
||||
flags = silent ? (flags | 32) : (flags & ~32);
|
||||
flags = background ? (flags | 64) : (flags & ~64);
|
||||
flags = clear_draft ? (flags | 128) : (flags & ~128);
|
||||
flags = reply_to_msg_id != null ? (flags | 1) : (flags & ~1);
|
||||
flags = reply_markup != null ? (flags | 4) : (flags & ~4);
|
||||
flags = entities != null ? (flags | 8) : (flags & ~8);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
no_webpage = (flags & 2) != 0;
|
||||
silent = (flags & 32) != 0;
|
||||
background = (flags & 64) != 0;
|
||||
clear_draft = (flags & 128) != 0;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
if ((flags & 1) != 0)
|
||||
reply_to_msg_id = br.ReadInt32();
|
||||
else
|
||||
reply_to_msg_id = null;
|
||||
no_webpage = (flags & 2) != 0;
|
||||
silent = (flags & 32) != 0;
|
||||
background = (flags & 64) != 0;
|
||||
clear_draft = (flags & 128) != 0;
|
||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||
if ((flags & 1) != 0)
|
||||
reply_to_msg_id = br.ReadInt32();
|
||||
else
|
||||
reply_to_msg_id = null;
|
||||
|
||||
message = StringUtil.Deserialize(br);
|
||||
random_id = br.ReadInt64();
|
||||
if ((flags & 4) != 0)
|
||||
reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
reply_markup = null;
|
||||
message = StringUtil.Deserialize(br);
|
||||
random_id = br.ReadInt64();
|
||||
if ((flags & 4) != 0)
|
||||
reply_markup = (TLAbsReplyMarkup)ObjectUtils.DeserializeObject(br);
|
||||
else
|
||||
reply_markup = null;
|
||||
|
||||
if ((flags & 8) != 0)
|
||||
entities = (TLVector<TLAbsMessageEntity>)ObjectUtils.DeserializeVector<TLAbsMessageEntity>(br);
|
||||
else
|
||||
entities = null;
|
||||
if ((flags & 8) != 0)
|
||||
entities = (TLVector<TLAbsMessageEntity>)ObjectUtils.DeserializeVector<TLAbsMessageEntity>(br);
|
||||
else
|
||||
entities = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
|
||||
|
||||
|
||||
ObjectUtils.SerializeObject(peer,bw);
|
||||
if ((flags & 1) != 0)
|
||||
bw.Write(reply_to_msg_id.Value);
|
||||
StringUtil.Serialize(message,bw);
|
||||
bw.Write(random_id);
|
||||
if ((flags & 4) != 0)
|
||||
ObjectUtils.SerializeObject(reply_markup,bw);
|
||||
if ((flags & 8) != 0)
|
||||
ObjectUtils.SerializeObject(entities,bw);
|
||||
ObjectUtils.SerializeObject(peer, bw);
|
||||
if ((flags & 1) != 0)
|
||||
bw.Write(reply_to_msg_id.Value);
|
||||
StringUtil.Serialize(message, bw);
|
||||
bw.Write(random_id);
|
||||
if ((flags & 4) != 0)
|
||||
ObjectUtils.SerializeObject(reply_markup, bw);
|
||||
if ((flags & 8) != 0)
|
||||
ObjectUtils.SerializeObject(entities, bw);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,69 +7,72 @@ using System.Threading.Tasks;
|
|||
using TeleSharp.TL;
|
||||
namespace TeleSharp.TL.Messages
|
||||
{
|
||||
[TLObject(-920136629)]
|
||||
[TLObject(-712043766)]
|
||||
public class TLRequestSetBotCallbackAnswer : TLMethod
|
||||
{
|
||||
public override int Constructor
|
||||
{
|
||||
get
|
||||
{
|
||||
return -920136629;
|
||||
return -712043766;
|
||||
}
|
||||
}
|
||||
|
||||
public int flags {get;set;}
|
||||
public bool alert {get;set;}
|
||||
public long query_id {get;set;}
|
||||
public string message {get;set;}
|
||||
public string url {get;set;}
|
||||
public bool Response{ get; set;}
|
||||
public int flags { get; set; }
|
||||
public bool alert { get; set; }
|
||||
public long query_id { get; set; }
|
||||
public string message { get; set; }
|
||||
public string url { get; set; }
|
||||
public int cache_time { get; set; }
|
||||
public bool Response { get; set; }
|
||||
|
||||
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = alert ? (flags | 2) : (flags & ~2);
|
||||
flags = message != null ? (flags | 1) : (flags & ~1);
|
||||
flags = url != null ? (flags | 4) : (flags & ~4);
|
||||
public void ComputeFlags()
|
||||
{
|
||||
flags = 0;
|
||||
flags = alert ? (flags | 2) : (flags & ~2);
|
||||
flags = message != null ? (flags | 1) : (flags & ~1);
|
||||
flags = url != null ? (flags | 4) : (flags & ~4);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public override void DeserializeBody(BinaryReader br)
|
||||
{
|
||||
flags = br.ReadInt32();
|
||||
alert = (flags & 2) != 0;
|
||||
query_id = br.ReadInt64();
|
||||
if ((flags & 1) != 0)
|
||||
message = StringUtil.Deserialize(br);
|
||||
else
|
||||
message = null;
|
||||
alert = (flags & 2) != 0;
|
||||
query_id = br.ReadInt64();
|
||||
if ((flags & 1) != 0)
|
||||
message = StringUtil.Deserialize(br);
|
||||
else
|
||||
message = null;
|
||||
|
||||
if ((flags & 4) != 0)
|
||||
url = StringUtil.Deserialize(br);
|
||||
else
|
||||
url = null;
|
||||
if ((flags & 4) != 0)
|
||||
url = StringUtil.Deserialize(br);
|
||||
else
|
||||
url = null;
|
||||
|
||||
cache_time = br.ReadInt32();
|
||||
|
||||
}
|
||||
|
||||
public override void SerializeBody(BinaryWriter bw)
|
||||
{
|
||||
bw.Write(Constructor);
|
||||
bw.Write(Constructor);
|
||||
ComputeFlags();
|
||||
bw.Write(flags);
|
||||
bw.Write(flags);
|
||||
|
||||
bw.Write(query_id);
|
||||
if ((flags & 1) != 0)
|
||||
StringUtil.Serialize(message,bw);
|
||||
if ((flags & 4) != 0)
|
||||
StringUtil.Serialize(url,bw);
|
||||
bw.Write(query_id);
|
||||
if ((flags & 1) != 0)
|
||||
StringUtil.Serialize(message, bw);
|
||||
if ((flags & 4) != 0)
|
||||
StringUtil.Serialize(url, bw);
|
||||
bw.Write(cache_time);
|
||||
|
||||
}
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
public override void deserializeResponse(BinaryReader br)
|
||||
{
|
||||
Response = BoolUtil.Deserialize(br);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue