mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
TL-Layer: Update To Layer 66
This commit is contained in:
parent
0d55940c12
commit
234129ff56
|
|
@ -72,7 +72,7 @@ namespace TLSharp.Core
|
||||||
query = config,
|
query = config,
|
||||||
system_version = "Win 10.0"
|
system_version = "Win 10.0"
|
||||||
};
|
};
|
||||||
var invokewithLayer = new TLRequestInvokeWithLayer() { layer = 57, query = request };
|
var invokewithLayer = new TLRequestInvokeWithLayer() { layer = 66, query = request };
|
||||||
await _sender.Send(invokewithLayer);
|
await _sender.Send(invokewithLayer);
|
||||||
await _sender.Receive(invokewithLayer);
|
await _sender.Receive(invokewithLayer);
|
||||||
|
|
||||||
|
|
|
||||||
51
TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.cs
Normal file
51
TeleSharp.TL/TL/Account/TLRequestGetTmpPassword.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.Account
|
||||||
|
{
|
||||||
|
[TLObject(1250046590)]
|
||||||
|
public class TLRequestGetTmpPassword : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1250046590;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte[] password_hash {get;set;}
|
||||||
|
public int period {get;set;}
|
||||||
|
public Account.TLTmpPassword Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
password_hash = BytesUtil.Deserialize(br);
|
||||||
|
period = br.ReadInt32();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
BytesUtil.Serialize(password_hash,bw);
|
||||||
|
bw.Write(period);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (Account.TLTmpPassword)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
TeleSharp.TL/TL/Account/TLTmpPassword.cs
Normal file
45
TeleSharp.TL/TL/Account/TLTmpPassword.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.Account
|
||||||
|
{
|
||||||
|
[TLObject(-614138572)]
|
||||||
|
public class TLTmpPassword : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -614138572;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public byte[] tmp_password {get;set;}
|
||||||
|
public int valid_until {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
tmp_password = BytesUtil.Deserialize(br);
|
||||||
|
valid_until = br.ReadInt32();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
BytesUtil.Serialize(tmp_password,bw);
|
||||||
|
bw.Write(valid_until);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
51
TeleSharp.TL/TL/Bots/TLRequestAnswerWebhookJSONQuery.cs
Normal file
51
TeleSharp.TL/TL/Bots/TLRequestAnswerWebhookJSONQuery.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.Bots
|
||||||
|
{
|
||||||
|
[TLObject(-434028723)]
|
||||||
|
public class TLRequestAnswerWebhookJSONQuery : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -434028723;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public long query_id {get;set;}
|
||||||
|
public TLDataJSON data {get;set;}
|
||||||
|
public bool Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
query_id = br.ReadInt64();
|
||||||
|
data = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
bw.Write(query_id);
|
||||||
|
ObjectUtils.SerializeObject(data,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = BoolUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
51
TeleSharp.TL/TL/Bots/TLRequestSendCustomRequest.cs
Normal file
51
TeleSharp.TL/TL/Bots/TLRequestSendCustomRequest.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.Bots
|
||||||
|
{
|
||||||
|
[TLObject(-1440257555)]
|
||||||
|
public class TLRequestSendCustomRequest : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1440257555;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string custom_method {get;set;}
|
||||||
|
public TLDataJSON @params {get;set;}
|
||||||
|
public TLDataJSON Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
custom_method = StringUtil.Deserialize(br);
|
||||||
|
@params = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
StringUtil.Serialize(custom_method,bw);
|
||||||
|
ObjectUtils.SerializeObject(@params,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -18,7 +18,7 @@ namespace TeleSharp.TL.Channels
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Messages.TLChats Response{ get; set;}
|
public Messages.TLAbsChats Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
|
|
@ -38,7 +38,7 @@ namespace TeleSharp.TL.Channels
|
||||||
}
|
}
|
||||||
public override void deserializeResponse(BinaryReader br)
|
public override void deserializeResponse(BinaryReader br)
|
||||||
{
|
{
|
||||||
Response = (Messages.TLChats)ObjectUtils.DeserializeObject(br);
|
Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ namespace TeleSharp.TL.Channels
|
||||||
}
|
}
|
||||||
|
|
||||||
public TLVector<TLAbsInputChannel> id {get;set;}
|
public TLVector<TLAbsInputChannel> id {get;set;}
|
||||||
public Messages.TLChats Response{ get; set;}
|
public Messages.TLAbsChats Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
|
|
@ -41,7 +41,7 @@ namespace TeleSharp.TL.Channels
|
||||||
}
|
}
|
||||||
public override void deserializeResponse(BinaryReader br)
|
public override void deserializeResponse(BinaryReader br)
|
||||||
{
|
{
|
||||||
Response = (Messages.TLChats)ObjectUtils.DeserializeObject(br);
|
Response = (Messages.TLAbsChats)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ namespace TeleSharp.TL.Contacts
|
||||||
public bool correspondents {get;set;}
|
public bool correspondents {get;set;}
|
||||||
public bool bots_pm {get;set;}
|
public bool bots_pm {get;set;}
|
||||||
public bool bots_inline {get;set;}
|
public bool bots_inline {get;set;}
|
||||||
|
public bool phone_calls {get;set;}
|
||||||
public bool groups {get;set;}
|
public bool groups {get;set;}
|
||||||
public bool channels {get;set;}
|
public bool channels {get;set;}
|
||||||
public int offset {get;set;}
|
public int offset {get;set;}
|
||||||
|
|
@ -36,6 +37,7 @@ namespace TeleSharp.TL.Contacts
|
||||||
flags = correspondents ? (flags | 1) : (flags & ~1);
|
flags = correspondents ? (flags | 1) : (flags & ~1);
|
||||||
flags = bots_pm ? (flags | 2) : (flags & ~2);
|
flags = bots_pm ? (flags | 2) : (flags & ~2);
|
||||||
flags = bots_inline ? (flags | 4) : (flags & ~4);
|
flags = bots_inline ? (flags | 4) : (flags & ~4);
|
||||||
|
flags = phone_calls ? (flags | 8) : (flags & ~8);
|
||||||
flags = groups ? (flags | 1024) : (flags & ~1024);
|
flags = groups ? (flags | 1024) : (flags & ~1024);
|
||||||
flags = channels ? (flags | 32768) : (flags & ~32768);
|
flags = channels ? (flags | 32768) : (flags & ~32768);
|
||||||
|
|
||||||
|
|
@ -47,6 +49,7 @@ flags = channels ? (flags | 32768) : (flags & ~32768);
|
||||||
correspondents = (flags & 1) != 0;
|
correspondents = (flags & 1) != 0;
|
||||||
bots_pm = (flags & 2) != 0;
|
bots_pm = (flags & 2) != 0;
|
||||||
bots_inline = (flags & 4) != 0;
|
bots_inline = (flags & 4) != 0;
|
||||||
|
phone_calls = (flags & 8) != 0;
|
||||||
groups = (flags & 1024) != 0;
|
groups = (flags & 1024) != 0;
|
||||||
channels = (flags & 32768) != 0;
|
channels = (flags & 32768) != 0;
|
||||||
offset = br.ReadInt32();
|
offset = br.ReadInt32();
|
||||||
|
|
@ -65,6 +68,7 @@ bw.Write(flags);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bw.Write(offset);
|
bw.Write(offset);
|
||||||
bw.Write(limit);
|
bw.Write(limit);
|
||||||
bw.Write(hash);
|
bw.Write(hash);
|
||||||
|
|
|
||||||
|
|
@ -7,18 +7,19 @@ using System.Threading.Tasks;
|
||||||
using TeleSharp.TL;
|
using TeleSharp.TL;
|
||||||
namespace TeleSharp.TL.Help
|
namespace TeleSharp.TL.Help
|
||||||
{
|
{
|
||||||
[TLObject(-1189013126)]
|
[TLObject(-1877938321)]
|
||||||
public class TLRequestGetAppChangelog : TLMethod
|
public class TLRequestGetAppChangelog : TLMethod
|
||||||
{
|
{
|
||||||
public override int Constructor
|
public override int Constructor
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return -1189013126;
|
return -1877938321;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Help.TLAbsAppChangelog Response{ get; set;}
|
public string prev_app_version {get;set;}
|
||||||
|
public TLAbsUpdates Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
|
|
@ -28,17 +29,19 @@ namespace TeleSharp.TL.Help
|
||||||
|
|
||||||
public override void DeserializeBody(BinaryReader br)
|
public override void DeserializeBody(BinaryReader br)
|
||||||
{
|
{
|
||||||
|
prev_app_version = StringUtil.Deserialize(br);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void SerializeBody(BinaryWriter bw)
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
{
|
{
|
||||||
bw.Write(Constructor);
|
bw.Write(Constructor);
|
||||||
|
StringUtil.Serialize(prev_app_version,bw);
|
||||||
|
|
||||||
}
|
}
|
||||||
public override void deserializeResponse(BinaryReader br)
|
public override void deserializeResponse(BinaryReader br)
|
||||||
{
|
{
|
||||||
Response = (Help.TLAbsAppChangelog)ObjectUtils.DeserializeObject(br);
|
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
45
TeleSharp.TL/TL/Help/TLRequestGetCdnConfig.cs
Normal file
45
TeleSharp.TL/TL/Help/TLRequestGetCdnConfig.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.Help
|
||||||
|
{
|
||||||
|
[TLObject(1375900482)]
|
||||||
|
public class TLRequestGetCdnConfig : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1375900482;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLCdnConfig 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 = (TLCdnConfig)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
51
TeleSharp.TL/TL/Help/TLRequestSetBotUpdatesStatus.cs
Normal file
51
TeleSharp.TL/TL/Help/TLRequestSetBotUpdatesStatus.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.Help
|
||||||
|
{
|
||||||
|
[TLObject(-333262899)]
|
||||||
|
public class TLRequestSetBotUpdatesStatus : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -333262899;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int pending_updates_count {get;set;}
|
||||||
|
public string message {get;set;}
|
||||||
|
public bool Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
pending_updates_count = br.ReadInt32();
|
||||||
|
message = StringUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
bw.Write(pending_updates_count);
|
||||||
|
StringUtil.Serialize(message,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = BoolUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -5,9 +5,9 @@ using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using TeleSharp.TL;
|
using TeleSharp.TL;
|
||||||
namespace TeleSharp.TL.Help
|
namespace TeleSharp.TL.Messages
|
||||||
{
|
{
|
||||||
public abstract class TLAbsAppChangelog : TLObject
|
public abstract class TLAbsChats : TLObject
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -7,14 +7,14 @@ using System.Threading.Tasks;
|
||||||
using TeleSharp.TL;
|
using TeleSharp.TL;
|
||||||
namespace TeleSharp.TL.Messages
|
namespace TeleSharp.TL.Messages
|
||||||
{
|
{
|
||||||
[TLObject(-1324486149)]
|
[TLObject(911761060)]
|
||||||
public class TLBotCallbackAnswer : TLObject
|
public class TLBotCallbackAnswer : TLObject
|
||||||
{
|
{
|
||||||
public override int Constructor
|
public override int Constructor
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return -1324486149;
|
return 911761060;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -23,6 +23,7 @@ namespace TeleSharp.TL.Messages
|
||||||
public bool has_url {get;set;}
|
public bool has_url {get;set;}
|
||||||
public string message {get;set;}
|
public string message {get;set;}
|
||||||
public string url {get;set;}
|
public string url {get;set;}
|
||||||
|
public int cache_time {get;set;}
|
||||||
|
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
|
|
@ -50,6 +51,7 @@ url = StringUtil.Deserialize(br);
|
||||||
else
|
else
|
||||||
url = null;
|
url = null;
|
||||||
|
|
||||||
|
cache_time = br.ReadInt32();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -64,6 +66,7 @@ if ((flags & 1) != 0)
|
||||||
StringUtil.Serialize(message,bw);
|
StringUtil.Serialize(message,bw);
|
||||||
if ((flags & 4) != 0)
|
if ((flags & 4) != 0)
|
||||||
StringUtil.Serialize(url,bw);
|
StringUtil.Serialize(url,bw);
|
||||||
|
bw.Write(cache_time);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,14 +7,14 @@ using System.Threading.Tasks;
|
||||||
using TeleSharp.TL;
|
using TeleSharp.TL;
|
||||||
namespace TeleSharp.TL.Messages
|
namespace TeleSharp.TL.Messages
|
||||||
{
|
{
|
||||||
[TLObject(627509670)]
|
[TLObject(-858565059)]
|
||||||
public class TLBotResults : TLObject
|
public class TLBotResults : TLObject
|
||||||
{
|
{
|
||||||
public override int Constructor
|
public override int Constructor
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return 627509670;
|
return -858565059;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -24,6 +24,7 @@ namespace TeleSharp.TL.Messages
|
||||||
public string next_offset {get;set;}
|
public string next_offset {get;set;}
|
||||||
public TLInlineBotSwitchPM switch_pm {get;set;}
|
public TLInlineBotSwitchPM switch_pm {get;set;}
|
||||||
public TLVector<TLAbsBotInlineResult> results {get;set;}
|
public TLVector<TLAbsBotInlineResult> results {get;set;}
|
||||||
|
public int cache_time {get;set;}
|
||||||
|
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
|
|
@ -51,6 +52,7 @@ else
|
||||||
switch_pm = null;
|
switch_pm = null;
|
||||||
|
|
||||||
results = (TLVector<TLAbsBotInlineResult>)ObjectUtils.DeserializeVector<TLAbsBotInlineResult>(br);
|
results = (TLVector<TLAbsBotInlineResult>)ObjectUtils.DeserializeVector<TLAbsBotInlineResult>(br);
|
||||||
|
cache_time = br.ReadInt32();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -66,6 +68,7 @@ StringUtil.Serialize(next_offset,bw);
|
||||||
if ((flags & 4) != 0)
|
if ((flags & 4) != 0)
|
||||||
ObjectUtils.SerializeObject(switch_pm,bw);
|
ObjectUtils.SerializeObject(switch_pm,bw);
|
||||||
ObjectUtils.SerializeObject(results,bw);
|
ObjectUtils.SerializeObject(results,bw);
|
||||||
|
bw.Write(cache_time);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ using TeleSharp.TL;
|
||||||
namespace TeleSharp.TL.Messages
|
namespace TeleSharp.TL.Messages
|
||||||
{
|
{
|
||||||
[TLObject(1694474197)]
|
[TLObject(1694474197)]
|
||||||
public class TLChats : TLObject
|
public class TLChats : TLAbsChats
|
||||||
{
|
{
|
||||||
public override int Constructor
|
public override int Constructor
|
||||||
{
|
{
|
||||||
|
|
|
||||||
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,36 +7,45 @@ using System.Threading.Tasks;
|
||||||
using TeleSharp.TL;
|
using TeleSharp.TL;
|
||||||
namespace TeleSharp.TL.Messages
|
namespace TeleSharp.TL.Messages
|
||||||
{
|
{
|
||||||
[TLObject(-1510897371)]
|
[TLObject(-443640366)]
|
||||||
public class TLRequestDeleteMessages : TLMethod
|
public class TLRequestDeleteMessages : TLMethod
|
||||||
{
|
{
|
||||||
public override int Constructor
|
public override int Constructor
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return -1510897371;
|
return -443640366;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool revoke {get;set;}
|
||||||
public TLVector<int> id {get;set;}
|
public TLVector<int> id {get;set;}
|
||||||
public Messages.TLAffectedMessages Response{ 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)
|
public override void DeserializeBody(BinaryReader br)
|
||||||
{
|
{
|
||||||
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
flags = br.ReadInt32();
|
||||||
|
revoke = (flags & 1) != 0;
|
||||||
|
id = (TLVector<int>)ObjectUtils.DeserializeVector<int>(br);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void SerializeBody(BinaryWriter bw)
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
{
|
{
|
||||||
bw.Write(Constructor);
|
bw.Write(Constructor);
|
||||||
ObjectUtils.SerializeObject(id,bw);
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
ObjectUtils.SerializeObject(id,bw);
|
||||||
|
|
||||||
}
|
}
|
||||||
public override void deserializeResponse(BinaryReader br)
|
public override void deserializeResponse(BinaryReader 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);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -19,7 +19,7 @@ namespace TeleSharp.TL.Messages
|
||||||
}
|
}
|
||||||
|
|
||||||
public TLVector<int> id {get;set;}
|
public TLVector<int> id {get;set;}
|
||||||
public Messages.TLChats Response{ get; set;}
|
public Messages.TLAbsChats Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
|
|
@ -41,7 +41,7 @@ namespace TeleSharp.TL.Messages
|
||||||
}
|
}
|
||||||
public override void deserializeResponse(BinaryReader br)
|
public override void deserializeResponse(BinaryReader br)
|
||||||
{
|
{
|
||||||
Response = (Messages.TLChats)ObjectUtils.DeserializeObject(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,17 +7,19 @@ using System.Threading.Tasks;
|
||||||
using TeleSharp.TL;
|
using TeleSharp.TL;
|
||||||
namespace TeleSharp.TL.Messages
|
namespace TeleSharp.TL.Messages
|
||||||
{
|
{
|
||||||
[TLObject(1799878989)]
|
[TLObject(421243333)]
|
||||||
public class TLRequestGetDialogs : TLMethod
|
public class TLRequestGetDialogs : TLMethod
|
||||||
{
|
{
|
||||||
public override int Constructor
|
public override int Constructor
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return 1799878989;
|
return 421243333;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool exclude_pinned {get;set;}
|
||||||
public int offset_date {get;set;}
|
public int offset_date {get;set;}
|
||||||
public int offset_id {get;set;}
|
public int offset_id {get;set;}
|
||||||
public TLAbsInputPeer offset_peer {get;set;}
|
public TLAbsInputPeer offset_peer {get;set;}
|
||||||
|
|
@ -27,12 +29,16 @@ namespace TeleSharp.TL.Messages
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
{
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = exclude_pinned ? (flags | 1) : (flags & ~1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void DeserializeBody(BinaryReader br)
|
public override void DeserializeBody(BinaryReader br)
|
||||||
{
|
{
|
||||||
offset_date = br.ReadInt32();
|
flags = br.ReadInt32();
|
||||||
|
exclude_pinned = (flags & 1) != 0;
|
||||||
|
offset_date = br.ReadInt32();
|
||||||
offset_id = br.ReadInt32();
|
offset_id = br.ReadInt32();
|
||||||
offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
offset_peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||||
limit = br.ReadInt32();
|
limit = br.ReadInt32();
|
||||||
|
|
@ -42,7 +48,10 @@ limit = br.ReadInt32();
|
||||||
public override void SerializeBody(BinaryWriter bw)
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
{
|
{
|
||||||
bw.Write(Constructor);
|
bw.Write(Constructor);
|
||||||
bw.Write(offset_date);
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
bw.Write(offset_date);
|
||||||
bw.Write(offset_id);
|
bw.Write(offset_id);
|
||||||
ObjectUtils.SerializeObject(offset_peer,bw);
|
ObjectUtils.SerializeObject(offset_peer,bw);
|
||||||
bw.Write(limit);
|
bw.Write(limit);
|
||||||
|
|
|
||||||
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);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
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);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
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);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
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,14 +7,14 @@ using System.Threading.Tasks;
|
||||||
using TeleSharp.TL;
|
using TeleSharp.TL;
|
||||||
namespace TeleSharp.TL.Messages
|
namespace TeleSharp.TL.Messages
|
||||||
{
|
{
|
||||||
[TLObject(-920136629)]
|
[TLObject(-712043766)]
|
||||||
public class TLRequestSetBotCallbackAnswer : TLMethod
|
public class TLRequestSetBotCallbackAnswer : TLMethod
|
||||||
{
|
{
|
||||||
public override int Constructor
|
public override int Constructor
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return -920136629;
|
return -712043766;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -23,6 +23,7 @@ namespace TeleSharp.TL.Messages
|
||||||
public long query_id {get;set;}
|
public long query_id {get;set;}
|
||||||
public string message {get;set;}
|
public string message {get;set;}
|
||||||
public string url {get;set;}
|
public string url {get;set;}
|
||||||
|
public int cache_time {get;set;}
|
||||||
public bool Response{ get; set;}
|
public bool Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -50,6 +51,7 @@ url = StringUtil.Deserialize(br);
|
||||||
else
|
else
|
||||||
url = null;
|
url = null;
|
||||||
|
|
||||||
|
cache_time = br.ReadInt32();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -64,6 +66,7 @@ if ((flags & 1) != 0)
|
||||||
StringUtil.Serialize(message,bw);
|
StringUtil.Serialize(message,bw);
|
||||||
if ((flags & 4) != 0)
|
if ((flags & 4) != 0)
|
||||||
StringUtil.Serialize(url,bw);
|
StringUtil.Serialize(url,bw);
|
||||||
|
bw.Write(cache_time);
|
||||||
|
|
||||||
}
|
}
|
||||||
public override void deserializeResponse(BinaryReader br)
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,66 @@
|
||||||
|
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(163765653)]
|
||||||
|
public class TLRequestSetBotPrecheckoutResults : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 163765653;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool success {get;set;}
|
||||||
|
public long query_id {get;set;}
|
||||||
|
public string error {get;set;}
|
||||||
|
public bool Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = success ? (flags | 2) : (flags & ~2);
|
||||||
|
flags = error != null ? (flags | 1) : (flags & ~1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
success = (flags & 2) != 0;
|
||||||
|
query_id = br.ReadInt64();
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
error = StringUtil.Deserialize(br);
|
||||||
|
else
|
||||||
|
error = null;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
bw.Write(query_id);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
StringUtil.Serialize(error,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = BoolUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
71
TeleSharp.TL/TL/Messages/TLRequestSetBotShippingResults.cs
Normal file
71
TeleSharp.TL/TL/Messages/TLRequestSetBotShippingResults.cs
Normal file
|
|
@ -0,0 +1,71 @@
|
||||||
|
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(-436833542)]
|
||||||
|
public class TLRequestSetBotShippingResults : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -436833542;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public long query_id {get;set;}
|
||||||
|
public string error {get;set;}
|
||||||
|
public TLVector<TLShippingOption> shipping_options {get;set;}
|
||||||
|
public bool Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = error != null ? (flags | 1) : (flags & ~1);
|
||||||
|
flags = shipping_options != null ? (flags | 2) : (flags & ~2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
query_id = br.ReadInt64();
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
error = StringUtil.Deserialize(br);
|
||||||
|
else
|
||||||
|
error = null;
|
||||||
|
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
shipping_options = (TLVector<TLShippingOption>)ObjectUtils.DeserializeVector<TLShippingOption>(br);
|
||||||
|
else
|
||||||
|
shipping_options = null;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
bw.Write(query_id);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
StringUtil.Serialize(error,bw);
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
ObjectUtils.SerializeObject(shipping_options,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = BoolUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -20,6 +20,7 @@ namespace TeleSharp.TL.Messages
|
||||||
|
|
||||||
public int flags {get;set;}
|
public int flags {get;set;}
|
||||||
public bool edit_message {get;set;}
|
public bool edit_message {get;set;}
|
||||||
|
public bool force {get;set;}
|
||||||
public TLAbsInputPeer peer {get;set;}
|
public TLAbsInputPeer peer {get;set;}
|
||||||
public int id {get;set;}
|
public int id {get;set;}
|
||||||
public TLAbsInputUser user_id {get;set;}
|
public TLAbsInputUser user_id {get;set;}
|
||||||
|
|
@ -31,6 +32,7 @@ namespace TeleSharp.TL.Messages
|
||||||
{
|
{
|
||||||
flags = 0;
|
flags = 0;
|
||||||
flags = edit_message ? (flags | 1) : (flags & ~1);
|
flags = edit_message ? (flags | 1) : (flags & ~1);
|
||||||
|
flags = force ? (flags | 2) : (flags & ~2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -38,6 +40,7 @@ flags = edit_message ? (flags | 1) : (flags & ~1);
|
||||||
{
|
{
|
||||||
flags = br.ReadInt32();
|
flags = br.ReadInt32();
|
||||||
edit_message = (flags & 1) != 0;
|
edit_message = (flags & 1) != 0;
|
||||||
|
force = (flags & 2) != 0;
|
||||||
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||||
id = br.ReadInt32();
|
id = br.ReadInt32();
|
||||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
@ -51,6 +54,7 @@ score = br.ReadInt32();
|
||||||
ComputeFlags();
|
ComputeFlags();
|
||||||
bw.Write(flags);
|
bw.Write(flags);
|
||||||
|
|
||||||
|
|
||||||
ObjectUtils.SerializeObject(peer,bw);
|
ObjectUtils.SerializeObject(peer,bw);
|
||||||
bw.Write(id);
|
bw.Write(id);
|
||||||
ObjectUtils.SerializeObject(user_id,bw);
|
ObjectUtils.SerializeObject(user_id,bw);
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ namespace TeleSharp.TL.Messages
|
||||||
|
|
||||||
public int flags {get;set;}
|
public int flags {get;set;}
|
||||||
public bool edit_message {get;set;}
|
public bool edit_message {get;set;}
|
||||||
|
public bool force {get;set;}
|
||||||
public TLInputBotInlineMessageID id {get;set;}
|
public TLInputBotInlineMessageID id {get;set;}
|
||||||
public TLAbsInputUser user_id {get;set;}
|
public TLAbsInputUser user_id {get;set;}
|
||||||
public int score {get;set;}
|
public int score {get;set;}
|
||||||
|
|
@ -30,6 +31,7 @@ namespace TeleSharp.TL.Messages
|
||||||
{
|
{
|
||||||
flags = 0;
|
flags = 0;
|
||||||
flags = edit_message ? (flags | 1) : (flags & ~1);
|
flags = edit_message ? (flags | 1) : (flags & ~1);
|
||||||
|
flags = force ? (flags | 2) : (flags & ~2);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -37,6 +39,7 @@ flags = edit_message ? (flags | 1) : (flags & ~1);
|
||||||
{
|
{
|
||||||
flags = br.ReadInt32();
|
flags = br.ReadInt32();
|
||||||
edit_message = (flags & 1) != 0;
|
edit_message = (flags & 1) != 0;
|
||||||
|
force = (flags & 2) != 0;
|
||||||
id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br);
|
id = (TLInputBotInlineMessageID)ObjectUtils.DeserializeObject(br);
|
||||||
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||||
score = br.ReadInt32();
|
score = br.ReadInt32();
|
||||||
|
|
@ -49,6 +52,7 @@ score = br.ReadInt32();
|
||||||
ComputeFlags();
|
ComputeFlags();
|
||||||
bw.Write(flags);
|
bw.Write(flags);
|
||||||
|
|
||||||
|
|
||||||
ObjectUtils.SerializeObject(id,bw);
|
ObjectUtils.SerializeObject(id,bw);
|
||||||
ObjectUtils.SerializeObject(user_id,bw);
|
ObjectUtils.SerializeObject(user_id,bw);
|
||||||
bw.Write(score);
|
bw.Write(score);
|
||||||
|
|
|
||||||
57
TeleSharp.TL/TL/Messages/TLRequestToggleDialogPin.cs
Normal file
57
TeleSharp.TL/TL/Messages/TLRequestToggleDialogPin.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(847887978)]
|
||||||
|
public class TLRequestToggleDialogPin : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 847887978;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool pinned {get;set;}
|
||||||
|
public TLAbsInputPeer peer {get;set;}
|
||||||
|
public bool Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = pinned ? (flags | 1) : (flags & ~1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
pinned = (flags & 1) != 0;
|
||||||
|
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
ObjectUtils.SerializeObject(peer,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = BoolUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
51
TeleSharp.TL/TL/Messages/TLRequestUploadMedia.cs
Normal file
51
TeleSharp.TL/TL/Messages/TLRequestUploadMedia.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(1369162417)]
|
||||||
|
public class TLRequestUploadMedia : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1369162417;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLAbsInputPeer peer {get;set;}
|
||||||
|
public TLAbsInputMedia media {get;set;}
|
||||||
|
public TLAbsMessageMedia Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
peer = (TLAbsInputPeer)ObjectUtils.DeserializeObject(br);
|
||||||
|
media = (TLAbsInputMedia)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(peer,bw);
|
||||||
|
ObjectUtils.SerializeObject(media,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (TLAbsMessageMedia)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
13
TeleSharp.TL/TL/Payments/TLAbsPaymentResult.cs
Normal file
13
TeleSharp.TL/TL/Payments/TLAbsPaymentResult.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.Payments
|
||||||
|
{
|
||||||
|
public abstract class TLAbsPaymentResult : TLObject
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
103
TeleSharp.TL/TL/Payments/TLPaymentForm.cs
Normal file
103
TeleSharp.TL/TL/Payments/TLPaymentForm.cs
Normal file
|
|
@ -0,0 +1,103 @@
|
||||||
|
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.Payments
|
||||||
|
{
|
||||||
|
[TLObject(1062645411)]
|
||||||
|
public class TLPaymentForm : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1062645411;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool can_save_credentials {get;set;}
|
||||||
|
public bool password_missing {get;set;}
|
||||||
|
public int bot_id {get;set;}
|
||||||
|
public TLInvoice invoice {get;set;}
|
||||||
|
public int provider_id {get;set;}
|
||||||
|
public string url {get;set;}
|
||||||
|
public string native_provider {get;set;}
|
||||||
|
public TLDataJSON native_params {get;set;}
|
||||||
|
public TLPaymentRequestedInfo saved_info {get;set;}
|
||||||
|
public TLPaymentSavedCredentialsCard saved_credentials {get;set;}
|
||||||
|
public TLVector<TLAbsUser> users {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = can_save_credentials ? (flags | 4) : (flags & ~4);
|
||||||
|
flags = password_missing ? (flags | 8) : (flags & ~8);
|
||||||
|
flags = native_provider != null ? (flags | 16) : (flags & ~16);
|
||||||
|
flags = native_params != null ? (flags | 16) : (flags & ~16);
|
||||||
|
flags = saved_info != null ? (flags | 1) : (flags & ~1);
|
||||||
|
flags = saved_credentials != null ? (flags | 2) : (flags & ~2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
can_save_credentials = (flags & 4) != 0;
|
||||||
|
password_missing = (flags & 8) != 0;
|
||||||
|
bot_id = br.ReadInt32();
|
||||||
|
invoice = (TLInvoice)ObjectUtils.DeserializeObject(br);
|
||||||
|
provider_id = br.ReadInt32();
|
||||||
|
url = StringUtil.Deserialize(br);
|
||||||
|
if ((flags & 16) != 0)
|
||||||
|
native_provider = StringUtil.Deserialize(br);
|
||||||
|
else
|
||||||
|
native_provider = null;
|
||||||
|
|
||||||
|
if ((flags & 16) != 0)
|
||||||
|
native_params = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||||
|
else
|
||||||
|
native_params = null;
|
||||||
|
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
saved_info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br);
|
||||||
|
else
|
||||||
|
saved_info = null;
|
||||||
|
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
saved_credentials = (TLPaymentSavedCredentialsCard)ObjectUtils.DeserializeObject(br);
|
||||||
|
else
|
||||||
|
saved_credentials = null;
|
||||||
|
|
||||||
|
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
|
||||||
|
bw.Write(bot_id);
|
||||||
|
ObjectUtils.SerializeObject(invoice,bw);
|
||||||
|
bw.Write(provider_id);
|
||||||
|
StringUtil.Serialize(url,bw);
|
||||||
|
if ((flags & 16) != 0)
|
||||||
|
StringUtil.Serialize(native_provider,bw);
|
||||||
|
if ((flags & 16) != 0)
|
||||||
|
ObjectUtils.SerializeObject(native_params,bw);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
ObjectUtils.SerializeObject(saved_info,bw);
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
ObjectUtils.SerializeObject(saved_credentials,bw);
|
||||||
|
ObjectUtils.SerializeObject(users,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
86
TeleSharp.TL/TL/Payments/TLPaymentReceipt.cs
Normal file
86
TeleSharp.TL/TL/Payments/TLPaymentReceipt.cs
Normal file
|
|
@ -0,0 +1,86 @@
|
||||||
|
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.Payments
|
||||||
|
{
|
||||||
|
[TLObject(1342771681)]
|
||||||
|
public class TLPaymentReceipt : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1342771681;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public int date {get;set;}
|
||||||
|
public int bot_id {get;set;}
|
||||||
|
public TLInvoice invoice {get;set;}
|
||||||
|
public int provider_id {get;set;}
|
||||||
|
public TLPaymentRequestedInfo info {get;set;}
|
||||||
|
public TLShippingOption shipping {get;set;}
|
||||||
|
public string currency {get;set;}
|
||||||
|
public long total_amount {get;set;}
|
||||||
|
public string credentials_title {get;set;}
|
||||||
|
public TLVector<TLAbsUser> users {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = info != null ? (flags | 1) : (flags & ~1);
|
||||||
|
flags = shipping != null ? (flags | 2) : (flags & ~2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
date = br.ReadInt32();
|
||||||
|
bot_id = br.ReadInt32();
|
||||||
|
invoice = (TLInvoice)ObjectUtils.DeserializeObject(br);
|
||||||
|
provider_id = br.ReadInt32();
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br);
|
||||||
|
else
|
||||||
|
info = null;
|
||||||
|
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
shipping = (TLShippingOption)ObjectUtils.DeserializeObject(br);
|
||||||
|
else
|
||||||
|
shipping = null;
|
||||||
|
|
||||||
|
currency = StringUtil.Deserialize(br);
|
||||||
|
total_amount = br.ReadInt64();
|
||||||
|
credentials_title = StringUtil.Deserialize(br);
|
||||||
|
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
bw.Write(date);
|
||||||
|
bw.Write(bot_id);
|
||||||
|
ObjectUtils.SerializeObject(invoice,bw);
|
||||||
|
bw.Write(provider_id);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
ObjectUtils.SerializeObject(info,bw);
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
ObjectUtils.SerializeObject(shipping,bw);
|
||||||
|
StringUtil.Serialize(currency,bw);
|
||||||
|
bw.Write(total_amount);
|
||||||
|
StringUtil.Serialize(credentials_title,bw);
|
||||||
|
ObjectUtils.SerializeObject(users,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
42
TeleSharp.TL/TL/Payments/TLPaymentResult.cs
Normal file
42
TeleSharp.TL/TL/Payments/TLPaymentResult.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
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.Payments
|
||||||
|
{
|
||||||
|
[TLObject(1314881805)]
|
||||||
|
public class TLPaymentResult : TLAbsPaymentResult
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1314881805;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLAbsUpdates updates {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
updates = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(updates,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
42
TeleSharp.TL/TL/Payments/TLPaymentVerficationNeeded.cs
Normal file
42
TeleSharp.TL/TL/Payments/TLPaymentVerficationNeeded.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
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.Payments
|
||||||
|
{
|
||||||
|
[TLObject(1800845601)]
|
||||||
|
public class TLPaymentVerficationNeeded : TLAbsPaymentResult
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1800845601;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string url {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
url = StringUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
StringUtil.Serialize(url,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
58
TeleSharp.TL/TL/Payments/TLRequestClearSavedInfo.cs
Normal file
58
TeleSharp.TL/TL/Payments/TLRequestClearSavedInfo.cs
Normal file
|
|
@ -0,0 +1,58 @@
|
||||||
|
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.Payments
|
||||||
|
{
|
||||||
|
[TLObject(-667062079)]
|
||||||
|
public class TLRequestClearSavedInfo : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -667062079;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool credentials {get;set;}
|
||||||
|
public bool info {get;set;}
|
||||||
|
public bool Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = credentials ? (flags | 1) : (flags & ~1);
|
||||||
|
flags = info ? (flags | 2) : (flags & ~2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
credentials = (flags & 1) != 0;
|
||||||
|
info = (flags & 2) != 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = BoolUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
48
TeleSharp.TL/TL/Payments/TLRequestGetPaymentForm.cs
Normal file
48
TeleSharp.TL/TL/Payments/TLRequestGetPaymentForm.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.Payments
|
||||||
|
{
|
||||||
|
[TLObject(-1712285883)]
|
||||||
|
public class TLRequestGetPaymentForm : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1712285883;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int msg_id {get;set;}
|
||||||
|
public Payments.TLPaymentForm Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
msg_id = br.ReadInt32();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
bw.Write(msg_id);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (Payments.TLPaymentForm)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
48
TeleSharp.TL/TL/Payments/TLRequestGetPaymentReceipt.cs
Normal file
48
TeleSharp.TL/TL/Payments/TLRequestGetPaymentReceipt.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.Payments
|
||||||
|
{
|
||||||
|
[TLObject(-1601001088)]
|
||||||
|
public class TLRequestGetPaymentReceipt : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1601001088;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int msg_id {get;set;}
|
||||||
|
public Payments.TLPaymentReceipt Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
msg_id = br.ReadInt32();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
bw.Write(msg_id);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (Payments.TLPaymentReceipt)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
TeleSharp.TL/TL/Payments/TLRequestGetSavedInfo.cs
Normal file
45
TeleSharp.TL/TL/Payments/TLRequestGetSavedInfo.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.Payments
|
||||||
|
{
|
||||||
|
[TLObject(578650699)]
|
||||||
|
public class TLRequestGetSavedInfo : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 578650699;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public Payments.TLSavedInfo 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 = (Payments.TLSavedInfo)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
74
TeleSharp.TL/TL/Payments/TLRequestSendPaymentForm.cs
Normal file
74
TeleSharp.TL/TL/Payments/TLRequestSendPaymentForm.cs
Normal file
|
|
@ -0,0 +1,74 @@
|
||||||
|
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.Payments
|
||||||
|
{
|
||||||
|
[TLObject(730364339)]
|
||||||
|
public class TLRequestSendPaymentForm : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 730364339;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public int msg_id {get;set;}
|
||||||
|
public string requested_info_id {get;set;}
|
||||||
|
public string shipping_option_id {get;set;}
|
||||||
|
public TLAbsInputPaymentCredentials credentials {get;set;}
|
||||||
|
public Payments.TLAbsPaymentResult Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = requested_info_id != null ? (flags | 1) : (flags & ~1);
|
||||||
|
flags = shipping_option_id != null ? (flags | 2) : (flags & ~2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
msg_id = br.ReadInt32();
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
requested_info_id = StringUtil.Deserialize(br);
|
||||||
|
else
|
||||||
|
requested_info_id = null;
|
||||||
|
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
shipping_option_id = StringUtil.Deserialize(br);
|
||||||
|
else
|
||||||
|
shipping_option_id = null;
|
||||||
|
|
||||||
|
credentials = (TLAbsInputPaymentCredentials)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
bw.Write(msg_id);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
StringUtil.Serialize(requested_info_id,bw);
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
StringUtil.Serialize(shipping_option_id,bw);
|
||||||
|
ObjectUtils.SerializeObject(credentials,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (Payments.TLAbsPaymentResult)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
60
TeleSharp.TL/TL/Payments/TLRequestValidateRequestedInfo.cs
Normal file
60
TeleSharp.TL/TL/Payments/TLRequestValidateRequestedInfo.cs
Normal file
|
|
@ -0,0 +1,60 @@
|
||||||
|
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.Payments
|
||||||
|
{
|
||||||
|
[TLObject(1997180532)]
|
||||||
|
public class TLRequestValidateRequestedInfo : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1997180532;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool save {get;set;}
|
||||||
|
public int msg_id {get;set;}
|
||||||
|
public TLPaymentRequestedInfo info {get;set;}
|
||||||
|
public Payments.TLValidatedRequestedInfo Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = save ? (flags | 1) : (flags & ~1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
save = (flags & 1) != 0;
|
||||||
|
msg_id = br.ReadInt32();
|
||||||
|
info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
bw.Write(msg_id);
|
||||||
|
ObjectUtils.SerializeObject(info,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (Payments.TLValidatedRequestedInfo)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
57
TeleSharp.TL/TL/Payments/TLSavedInfo.cs
Normal file
57
TeleSharp.TL/TL/Payments/TLSavedInfo.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.Payments
|
||||||
|
{
|
||||||
|
[TLObject(-74456004)]
|
||||||
|
public class TLSavedInfo : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -74456004;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool has_saved_credentials {get;set;}
|
||||||
|
public TLPaymentRequestedInfo saved_info {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = has_saved_credentials ? (flags | 2) : (flags & ~2);
|
||||||
|
flags = saved_info != null ? (flags | 1) : (flags & ~1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
has_saved_credentials = (flags & 2) != 0;
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
saved_info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br);
|
||||||
|
else
|
||||||
|
saved_info = null;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
ObjectUtils.SerializeObject(saved_info,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
62
TeleSharp.TL/TL/Payments/TLValidatedRequestedInfo.cs
Normal file
62
TeleSharp.TL/TL/Payments/TLValidatedRequestedInfo.cs
Normal file
|
|
@ -0,0 +1,62 @@
|
||||||
|
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.Payments
|
||||||
|
{
|
||||||
|
[TLObject(-784000893)]
|
||||||
|
public class TLValidatedRequestedInfo : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -784000893;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public string id {get;set;}
|
||||||
|
public TLVector<TLShippingOption> shipping_options {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = id != null ? (flags | 1) : (flags & ~1);
|
||||||
|
flags = shipping_options != null ? (flags | 2) : (flags & ~2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
id = StringUtil.Deserialize(br);
|
||||||
|
else
|
||||||
|
id = null;
|
||||||
|
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
shipping_options = (TLVector<TLShippingOption>)ObjectUtils.DeserializeVector<TLShippingOption>(br);
|
||||||
|
else
|
||||||
|
shipping_options = null;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
StringUtil.Serialize(id,bw);
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
ObjectUtils.SerializeObject(shipping_options,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
TeleSharp.TL/TL/Phone/TLPhoneCall.cs
Normal file
45
TeleSharp.TL/TL/Phone/TLPhoneCall.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.Phone
|
||||||
|
{
|
||||||
|
[TLObject(-326966976)]
|
||||||
|
public class TLPhoneCall : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -326966976;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLAbsPhoneCall phone_call {get;set;}
|
||||||
|
public TLVector<TLAbsUser> users {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
phone_call = (TLAbsPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||||
|
users = (TLVector<TLAbsUser>)ObjectUtils.DeserializeVector<TLAbsUser>(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(phone_call,bw);
|
||||||
|
ObjectUtils.SerializeObject(users,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
54
TeleSharp.TL/TL/Phone/TLRequestAcceptCall.cs
Normal file
54
TeleSharp.TL/TL/Phone/TLRequestAcceptCall.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.Phone
|
||||||
|
{
|
||||||
|
[TLObject(1003664544)]
|
||||||
|
public class TLRequestAcceptCall : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1003664544;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLInputPhoneCall peer {get;set;}
|
||||||
|
public byte[] g_b {get;set;}
|
||||||
|
public TLPhoneCallProtocol protocol {get;set;}
|
||||||
|
public Phone.TLPhoneCall Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||||
|
g_b = BytesUtil.Deserialize(br);
|
||||||
|
protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(peer,bw);
|
||||||
|
BytesUtil.Serialize(g_b,bw);
|
||||||
|
ObjectUtils.SerializeObject(protocol,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
57
TeleSharp.TL/TL/Phone/TLRequestConfirmCall.cs
Normal file
57
TeleSharp.TL/TL/Phone/TLRequestConfirmCall.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.Phone
|
||||||
|
{
|
||||||
|
[TLObject(788404002)]
|
||||||
|
public class TLRequestConfirmCall : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 788404002;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLInputPhoneCall peer {get;set;}
|
||||||
|
public byte[] g_a {get;set;}
|
||||||
|
public long key_fingerprint {get;set;}
|
||||||
|
public TLPhoneCallProtocol protocol {get;set;}
|
||||||
|
public Phone.TLPhoneCall Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||||
|
g_a = BytesUtil.Deserialize(br);
|
||||||
|
key_fingerprint = br.ReadInt64();
|
||||||
|
protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(peer,bw);
|
||||||
|
BytesUtil.Serialize(g_a,bw);
|
||||||
|
bw.Write(key_fingerprint);
|
||||||
|
ObjectUtils.SerializeObject(protocol,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
57
TeleSharp.TL/TL/Phone/TLRequestDiscardCall.cs
Normal file
57
TeleSharp.TL/TL/Phone/TLRequestDiscardCall.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.Phone
|
||||||
|
{
|
||||||
|
[TLObject(2027164582)]
|
||||||
|
public class TLRequestDiscardCall : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 2027164582;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLInputPhoneCall peer {get;set;}
|
||||||
|
public int duration {get;set;}
|
||||||
|
public TLAbsPhoneCallDiscardReason reason {get;set;}
|
||||||
|
public long connection_id {get;set;}
|
||||||
|
public TLAbsUpdates Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||||
|
duration = br.ReadInt32();
|
||||||
|
reason = (TLAbsPhoneCallDiscardReason)ObjectUtils.DeserializeObject(br);
|
||||||
|
connection_id = br.ReadInt64();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(peer,bw);
|
||||||
|
bw.Write(duration);
|
||||||
|
ObjectUtils.SerializeObject(reason,bw);
|
||||||
|
bw.Write(connection_id);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
TeleSharp.TL/TL/Phone/TLRequestGetCallConfig.cs
Normal file
45
TeleSharp.TL/TL/Phone/TLRequestGetCallConfig.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.Phone
|
||||||
|
{
|
||||||
|
[TLObject(1430593449)]
|
||||||
|
public class TLRequestGetCallConfig : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1430593449;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLDataJSON 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 = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
48
TeleSharp.TL/TL/Phone/TLRequestReceivedCall.cs
Normal file
48
TeleSharp.TL/TL/Phone/TLRequestReceivedCall.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.Phone
|
||||||
|
{
|
||||||
|
[TLObject(399855457)]
|
||||||
|
public class TLRequestReceivedCall : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 399855457;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLInputPhoneCall peer {get;set;}
|
||||||
|
public bool Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
peer = (TLInputPhoneCall)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);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
57
TeleSharp.TL/TL/Phone/TLRequestRequestCall.cs
Normal file
57
TeleSharp.TL/TL/Phone/TLRequestRequestCall.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.Phone
|
||||||
|
{
|
||||||
|
[TLObject(1536537556)]
|
||||||
|
public class TLRequestRequestCall : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1536537556;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLAbsInputUser user_id {get;set;}
|
||||||
|
public int random_id {get;set;}
|
||||||
|
public byte[] g_a_hash {get;set;}
|
||||||
|
public TLPhoneCallProtocol protocol {get;set;}
|
||||||
|
public Phone.TLPhoneCall Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||||
|
random_id = br.ReadInt32();
|
||||||
|
g_a_hash = BytesUtil.Deserialize(br);
|
||||||
|
protocol = (TLPhoneCallProtocol)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(user_id,bw);
|
||||||
|
bw.Write(random_id);
|
||||||
|
BytesUtil.Serialize(g_a_hash,bw);
|
||||||
|
ObjectUtils.SerializeObject(protocol,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (Phone.TLPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
51
TeleSharp.TL/TL/Phone/TLRequestSaveCallDebug.cs
Normal file
51
TeleSharp.TL/TL/Phone/TLRequestSaveCallDebug.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.Phone
|
||||||
|
{
|
||||||
|
[TLObject(662363518)]
|
||||||
|
public class TLRequestSaveCallDebug : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 662363518;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLInputPhoneCall peer {get;set;}
|
||||||
|
public TLDataJSON debug {get;set;}
|
||||||
|
public bool Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||||
|
debug = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(peer,bw);
|
||||||
|
ObjectUtils.SerializeObject(debug,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = BoolUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
54
TeleSharp.TL/TL/Phone/TLRequestSetCallRating.cs
Normal file
54
TeleSharp.TL/TL/Phone/TLRequestSetCallRating.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.Phone
|
||||||
|
{
|
||||||
|
[TLObject(475228724)]
|
||||||
|
public class TLRequestSetCallRating : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 475228724;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLInputPhoneCall peer {get;set;}
|
||||||
|
public int rating {get;set;}
|
||||||
|
public string comment {get;set;}
|
||||||
|
public TLAbsUpdates Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
peer = (TLInputPhoneCall)ObjectUtils.DeserializeObject(br);
|
||||||
|
rating = br.ReadInt32();
|
||||||
|
comment = StringUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(peer,bw);
|
||||||
|
bw.Write(rating);
|
||||||
|
StringUtil.Serialize(comment,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (TLAbsUpdates)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
51
TeleSharp.TL/TL/Stickers/TLRequestAddStickerToSet.cs
Normal file
51
TeleSharp.TL/TL/Stickers/TLRequestAddStickerToSet.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.Stickers
|
||||||
|
{
|
||||||
|
[TLObject(-2041315650)]
|
||||||
|
public class TLRequestAddStickerToSet : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -2041315650;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLAbsInputStickerSet stickerset {get;set;}
|
||||||
|
public TLInputStickerSetItem sticker {get;set;}
|
||||||
|
public Messages.TLStickerSet Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
stickerset = (TLAbsInputStickerSet)ObjectUtils.DeserializeObject(br);
|
||||||
|
sticker = (TLInputStickerSetItem)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(stickerset,bw);
|
||||||
|
ObjectUtils.SerializeObject(sticker,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (Messages.TLStickerSet)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
51
TeleSharp.TL/TL/Stickers/TLRequestChangeStickerPosition.cs
Normal file
51
TeleSharp.TL/TL/Stickers/TLRequestChangeStickerPosition.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.Stickers
|
||||||
|
{
|
||||||
|
[TLObject(1322714570)]
|
||||||
|
public class TLRequestChangeStickerPosition : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1322714570;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLAbsInputDocument sticker {get;set;}
|
||||||
|
public int position {get;set;}
|
||||||
|
public bool Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
sticker = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br);
|
||||||
|
position = br.ReadInt32();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(sticker,bw);
|
||||||
|
bw.Write(position);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = BoolUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
66
TeleSharp.TL/TL/Stickers/TLRequestCreateStickerSet.cs
Normal file
66
TeleSharp.TL/TL/Stickers/TLRequestCreateStickerSet.cs
Normal file
|
|
@ -0,0 +1,66 @@
|
||||||
|
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.Stickers
|
||||||
|
{
|
||||||
|
[TLObject(-1680314774)]
|
||||||
|
public class TLRequestCreateStickerSet : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1680314774;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool masks {get;set;}
|
||||||
|
public TLAbsInputUser user_id {get;set;}
|
||||||
|
public string title {get;set;}
|
||||||
|
public string short_name {get;set;}
|
||||||
|
public TLVector<TLInputStickerSetItem> stickers {get;set;}
|
||||||
|
public Messages.TLStickerSet Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = masks ? (flags | 1) : (flags & ~1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
masks = (flags & 1) != 0;
|
||||||
|
user_id = (TLAbsInputUser)ObjectUtils.DeserializeObject(br);
|
||||||
|
title = StringUtil.Deserialize(br);
|
||||||
|
short_name = StringUtil.Deserialize(br);
|
||||||
|
stickers = (TLVector<TLInputStickerSetItem>)ObjectUtils.DeserializeVector<TLInputStickerSetItem>(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
ObjectUtils.SerializeObject(user_id,bw);
|
||||||
|
StringUtil.Serialize(title,bw);
|
||||||
|
StringUtil.Serialize(short_name,bw);
|
||||||
|
ObjectUtils.SerializeObject(stickers,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = (Messages.TLStickerSet)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
48
TeleSharp.TL/TL/Stickers/TLRequestRemoveStickerFromSet.cs
Normal file
48
TeleSharp.TL/TL/Stickers/TLRequestRemoveStickerFromSet.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.Stickers
|
||||||
|
{
|
||||||
|
[TLObject(69556532)]
|
||||||
|
public class TLRequestRemoveStickerFromSet : TLMethod
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 69556532;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLAbsInputDocument sticker {get;set;}
|
||||||
|
public bool Response{ get; set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
sticker = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(sticker,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
public override void deserializeResponse(BinaryReader br)
|
||||||
|
{
|
||||||
|
Response = BoolUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
13
TeleSharp.TL/TL/TLAbsInputPaymentCredentials.cs
Normal file
13
TeleSharp.TL/TL/TLAbsInputPaymentCredentials.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
|
||||||
|
{
|
||||||
|
public abstract class TLAbsInputPaymentCredentials : TLObject
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
13
TeleSharp.TL/TL/TLAbsPage.cs
Normal file
13
TeleSharp.TL/TL/TLAbsPage.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
|
||||||
|
{
|
||||||
|
public abstract class TLAbsPage : TLObject
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
13
TeleSharp.TL/TL/TLAbsPageBlock.cs
Normal file
13
TeleSharp.TL/TL/TLAbsPageBlock.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
|
||||||
|
{
|
||||||
|
public abstract class TLAbsPageBlock : TLObject
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
13
TeleSharp.TL/TL/TLAbsPhoneCall.cs
Normal file
13
TeleSharp.TL/TL/TLAbsPhoneCall.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
|
||||||
|
{
|
||||||
|
public abstract class TLAbsPhoneCall : TLObject
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
13
TeleSharp.TL/TL/TLAbsPhoneCallDiscardReason.cs
Normal file
13
TeleSharp.TL/TL/TLAbsPhoneCallDiscardReason.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
|
||||||
|
{
|
||||||
|
public abstract class TLAbsPhoneCallDiscardReason : TLObject
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
13
TeleSharp.TL/TL/TLAbsRichText.cs
Normal file
13
TeleSharp.TL/TL/TLAbsRichText.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
|
||||||
|
{
|
||||||
|
public abstract class TLAbsRichText : TLObject
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
42
TeleSharp.TL/TL/TLCdnConfig.cs
Normal file
42
TeleSharp.TL/TL/TLCdnConfig.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(1462101002)]
|
||||||
|
public class TLCdnConfig : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1462101002;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLVector<TLCdnPublicKey> public_keys {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
public_keys = (TLVector<TLCdnPublicKey>)ObjectUtils.DeserializeVector<TLCdnPublicKey>(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(public_keys,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
TeleSharp.TL/TL/TLCdnPublicKey.cs
Normal file
45
TeleSharp.TL/TL/TLCdnPublicKey.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
|
||||||
|
{
|
||||||
|
[TLObject(-914167110)]
|
||||||
|
public class TLCdnPublicKey : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -914167110;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int dc_id {get;set;}
|
||||||
|
public string public_key {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
dc_id = br.ReadInt32();
|
||||||
|
public_key = StringUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
bw.Write(dc_id);
|
||||||
|
StringUtil.Serialize(public_key,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -7,18 +7,19 @@ using System.Threading.Tasks;
|
||||||
using TeleSharp.TL;
|
using TeleSharp.TL;
|
||||||
namespace TeleSharp.TL
|
namespace TeleSharp.TL
|
||||||
{
|
{
|
||||||
[TLObject(-1704251862)]
|
[TLObject(-882895228)]
|
||||||
public class TLConfig : TLObject
|
public class TLConfig : TLObject
|
||||||
{
|
{
|
||||||
public override int Constructor
|
public override int Constructor
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return -1704251862;
|
return -882895228;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int flags {get;set;}
|
public int flags {get;set;}
|
||||||
|
public bool phonecalls_enabled {get;set;}
|
||||||
public int date {get;set;}
|
public int date {get;set;}
|
||||||
public int expires {get;set;}
|
public int expires {get;set;}
|
||||||
public bool test_mode {get;set;}
|
public bool test_mode {get;set;}
|
||||||
|
|
@ -41,12 +42,19 @@ namespace TeleSharp.TL
|
||||||
public int rating_e_decay {get;set;}
|
public int rating_e_decay {get;set;}
|
||||||
public int stickers_recent_limit {get;set;}
|
public int stickers_recent_limit {get;set;}
|
||||||
public int? tmp_sessions {get;set;}
|
public int? tmp_sessions {get;set;}
|
||||||
|
public int pinned_dialogs_count_max {get;set;}
|
||||||
|
public int call_receive_timeout_ms {get;set;}
|
||||||
|
public int call_ring_timeout_ms {get;set;}
|
||||||
|
public int call_connect_timeout_ms {get;set;}
|
||||||
|
public int call_packet_timeout_ms {get;set;}
|
||||||
|
public string me_url_prefix {get;set;}
|
||||||
public TLVector<TLDisabledFeature> disabled_features {get;set;}
|
public TLVector<TLDisabledFeature> disabled_features {get;set;}
|
||||||
|
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
{
|
{
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
flags = phonecalls_enabled ? (flags | 2) : (flags & ~2);
|
||||||
flags = tmp_sessions != null ? (flags | 1) : (flags & ~1);
|
flags = tmp_sessions != null ? (flags | 1) : (flags & ~1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -54,6 +62,7 @@ flags = tmp_sessions != null ? (flags | 1) : (flags & ~1);
|
||||||
public override void DeserializeBody(BinaryReader br)
|
public override void DeserializeBody(BinaryReader br)
|
||||||
{
|
{
|
||||||
flags = br.ReadInt32();
|
flags = br.ReadInt32();
|
||||||
|
phonecalls_enabled = (flags & 2) != 0;
|
||||||
date = br.ReadInt32();
|
date = br.ReadInt32();
|
||||||
expires = br.ReadInt32();
|
expires = br.ReadInt32();
|
||||||
test_mode = BoolUtil.Deserialize(br);
|
test_mode = BoolUtil.Deserialize(br);
|
||||||
|
|
@ -80,6 +89,12 @@ tmp_sessions = br.ReadInt32();
|
||||||
else
|
else
|
||||||
tmp_sessions = null;
|
tmp_sessions = null;
|
||||||
|
|
||||||
|
pinned_dialogs_count_max = br.ReadInt32();
|
||||||
|
call_receive_timeout_ms = br.ReadInt32();
|
||||||
|
call_ring_timeout_ms = br.ReadInt32();
|
||||||
|
call_connect_timeout_ms = br.ReadInt32();
|
||||||
|
call_packet_timeout_ms = br.ReadInt32();
|
||||||
|
me_url_prefix = StringUtil.Deserialize(br);
|
||||||
disabled_features = (TLVector<TLDisabledFeature>)ObjectUtils.DeserializeVector<TLDisabledFeature>(br);
|
disabled_features = (TLVector<TLDisabledFeature>)ObjectUtils.DeserializeVector<TLDisabledFeature>(br);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -89,6 +104,7 @@ disabled_features = (TLVector<TLDisabledFeature>)ObjectUtils.DeserializeVector<T
|
||||||
bw.Write(Constructor);
|
bw.Write(Constructor);
|
||||||
ComputeFlags();
|
ComputeFlags();
|
||||||
bw.Write(flags);
|
bw.Write(flags);
|
||||||
|
|
||||||
bw.Write(date);
|
bw.Write(date);
|
||||||
bw.Write(expires);
|
bw.Write(expires);
|
||||||
BoolUtil.Serialize(test_mode,bw);
|
BoolUtil.Serialize(test_mode,bw);
|
||||||
|
|
@ -112,6 +128,12 @@ bw.Write(rating_e_decay);
|
||||||
bw.Write(stickers_recent_limit);
|
bw.Write(stickers_recent_limit);
|
||||||
if ((flags & 1) != 0)
|
if ((flags & 1) != 0)
|
||||||
bw.Write(tmp_sessions.Value);
|
bw.Write(tmp_sessions.Value);
|
||||||
|
bw.Write(pinned_dialogs_count_max);
|
||||||
|
bw.Write(call_receive_timeout_ms);
|
||||||
|
bw.Write(call_ring_timeout_ms);
|
||||||
|
bw.Write(call_connect_timeout_ms);
|
||||||
|
bw.Write(call_packet_timeout_ms);
|
||||||
|
StringUtil.Serialize(me_url_prefix,bw);
|
||||||
ObjectUtils.SerializeObject(disabled_features,bw);
|
ObjectUtils.SerializeObject(disabled_features,bw);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
42
TeleSharp.TL/TL/TLDataJSON.cs
Normal file
42
TeleSharp.TL/TL/TLDataJSON.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(2104790276)]
|
||||||
|
public class TLDataJSON : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 2104790276;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string data {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
data = StringUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
StringUtil.Serialize(data,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -22,6 +22,7 @@ namespace TeleSharp.TL
|
||||||
public bool ipv6 {get;set;}
|
public bool ipv6 {get;set;}
|
||||||
public bool media_only {get;set;}
|
public bool media_only {get;set;}
|
||||||
public bool tcpo_only {get;set;}
|
public bool tcpo_only {get;set;}
|
||||||
|
public bool cdn {get;set;}
|
||||||
public int id {get;set;}
|
public int id {get;set;}
|
||||||
public string ip_address {get;set;}
|
public string ip_address {get;set;}
|
||||||
public int port {get;set;}
|
public int port {get;set;}
|
||||||
|
|
@ -33,6 +34,7 @@ namespace TeleSharp.TL
|
||||||
flags = ipv6 ? (flags | 1) : (flags & ~1);
|
flags = ipv6 ? (flags | 1) : (flags & ~1);
|
||||||
flags = media_only ? (flags | 2) : (flags & ~2);
|
flags = media_only ? (flags | 2) : (flags & ~2);
|
||||||
flags = tcpo_only ? (flags | 4) : (flags & ~4);
|
flags = tcpo_only ? (flags | 4) : (flags & ~4);
|
||||||
|
flags = cdn ? (flags | 8) : (flags & ~8);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -42,6 +44,7 @@ flags = tcpo_only ? (flags | 4) : (flags & ~4);
|
||||||
ipv6 = (flags & 1) != 0;
|
ipv6 = (flags & 1) != 0;
|
||||||
media_only = (flags & 2) != 0;
|
media_only = (flags & 2) != 0;
|
||||||
tcpo_only = (flags & 4) != 0;
|
tcpo_only = (flags & 4) != 0;
|
||||||
|
cdn = (flags & 8) != 0;
|
||||||
id = br.ReadInt32();
|
id = br.ReadInt32();
|
||||||
ip_address = StringUtil.Deserialize(br);
|
ip_address = StringUtil.Deserialize(br);
|
||||||
port = br.ReadInt32();
|
port = br.ReadInt32();
|
||||||
|
|
@ -56,6 +59,7 @@ bw.Write(flags);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
bw.Write(id);
|
bw.Write(id);
|
||||||
StringUtil.Serialize(ip_address,bw);
|
StringUtil.Serialize(ip_address,bw);
|
||||||
bw.Write(port);
|
bw.Write(port);
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@ namespace TeleSharp.TL
|
||||||
}
|
}
|
||||||
|
|
||||||
public int flags {get;set;}
|
public int flags {get;set;}
|
||||||
|
public bool pinned {get;set;}
|
||||||
public TLAbsPeer peer {get;set;}
|
public TLAbsPeer peer {get;set;}
|
||||||
public int top_message {get;set;}
|
public int top_message {get;set;}
|
||||||
public int read_inbox_max_id {get;set;}
|
public int read_inbox_max_id {get;set;}
|
||||||
|
|
@ -32,6 +33,7 @@ namespace TeleSharp.TL
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
{
|
{
|
||||||
flags = 0;
|
flags = 0;
|
||||||
|
flags = pinned ? (flags | 4) : (flags & ~4);
|
||||||
flags = pts != null ? (flags | 1) : (flags & ~1);
|
flags = pts != null ? (flags | 1) : (flags & ~1);
|
||||||
flags = draft != null ? (flags | 2) : (flags & ~2);
|
flags = draft != null ? (flags | 2) : (flags & ~2);
|
||||||
|
|
||||||
|
|
@ -40,6 +42,7 @@ flags = draft != null ? (flags | 2) : (flags & ~2);
|
||||||
public override void DeserializeBody(BinaryReader br)
|
public override void DeserializeBody(BinaryReader br)
|
||||||
{
|
{
|
||||||
flags = br.ReadInt32();
|
flags = br.ReadInt32();
|
||||||
|
pinned = (flags & 4) != 0;
|
||||||
peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br);
|
peer = (TLAbsPeer)ObjectUtils.DeserializeObject(br);
|
||||||
top_message = br.ReadInt32();
|
top_message = br.ReadInt32();
|
||||||
read_inbox_max_id = br.ReadInt32();
|
read_inbox_max_id = br.ReadInt32();
|
||||||
|
|
@ -64,6 +67,7 @@ draft = null;
|
||||||
bw.Write(Constructor);
|
bw.Write(Constructor);
|
||||||
ComputeFlags();
|
ComputeFlags();
|
||||||
bw.Write(flags);
|
bw.Write(flags);
|
||||||
|
|
||||||
ObjectUtils.SerializeObject(peer,bw);
|
ObjectUtils.SerializeObject(peer,bw);
|
||||||
bw.Write(top_message);
|
bw.Write(top_message);
|
||||||
bw.Write(read_inbox_max_id);
|
bw.Write(read_inbox_max_id);
|
||||||
|
|
|
||||||
|
|
@ -7,17 +7,19 @@ using System.Threading.Tasks;
|
||||||
using TeleSharp.TL;
|
using TeleSharp.TL;
|
||||||
namespace TeleSharp.TL
|
namespace TeleSharp.TL
|
||||||
{
|
{
|
||||||
[TLObject(1494273227)]
|
[TLObject(250621158)]
|
||||||
public class TLDocumentAttributeVideo : TLAbsDocumentAttribute
|
public class TLDocumentAttributeVideo : TLAbsDocumentAttribute
|
||||||
{
|
{
|
||||||
public override int Constructor
|
public override int Constructor
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return 1494273227;
|
return 250621158;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool round_message {get;set;}
|
||||||
public int duration {get;set;}
|
public int duration {get;set;}
|
||||||
public int w {get;set;}
|
public int w {get;set;}
|
||||||
public int h {get;set;}
|
public int h {get;set;}
|
||||||
|
|
@ -25,12 +27,16 @@ namespace TeleSharp.TL
|
||||||
|
|
||||||
public void ComputeFlags()
|
public void ComputeFlags()
|
||||||
{
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = round_message ? (flags | 1) : (flags & ~1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void DeserializeBody(BinaryReader br)
|
public override void DeserializeBody(BinaryReader br)
|
||||||
{
|
{
|
||||||
duration = br.ReadInt32();
|
flags = br.ReadInt32();
|
||||||
|
round_message = (flags & 1) != 0;
|
||||||
|
duration = br.ReadInt32();
|
||||||
w = br.ReadInt32();
|
w = br.ReadInt32();
|
||||||
h = br.ReadInt32();
|
h = br.ReadInt32();
|
||||||
|
|
||||||
|
|
@ -39,7 +45,10 @@ h = br.ReadInt32();
|
||||||
public override void SerializeBody(BinaryWriter bw)
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
{
|
{
|
||||||
bw.Write(Constructor);
|
bw.Write(Constructor);
|
||||||
bw.Write(duration);
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
bw.Write(duration);
|
||||||
bw.Write(w);
|
bw.Write(w);
|
||||||
bw.Write(h);
|
bw.Write(h);
|
||||||
|
|
||||||
|
|
|
||||||
71
TeleSharp.TL/TL/TLInputMediaInvoice.cs
Normal file
71
TeleSharp.TL/TL/TLInputMediaInvoice.cs
Normal file
|
|
@ -0,0 +1,71 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(-1844103547)]
|
||||||
|
public class TLInputMediaInvoice : TLAbsInputMedia
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1844103547;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public string title {get;set;}
|
||||||
|
public string description {get;set;}
|
||||||
|
public TLInputWebDocument photo {get;set;}
|
||||||
|
public TLInvoice invoice {get;set;}
|
||||||
|
public byte[] payload {get;set;}
|
||||||
|
public string provider {get;set;}
|
||||||
|
public string start_param {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = photo != null ? (flags | 1) : (flags & ~1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
title = StringUtil.Deserialize(br);
|
||||||
|
description = StringUtil.Deserialize(br);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
photo = (TLInputWebDocument)ObjectUtils.DeserializeObject(br);
|
||||||
|
else
|
||||||
|
photo = null;
|
||||||
|
|
||||||
|
invoice = (TLInvoice)ObjectUtils.DeserializeObject(br);
|
||||||
|
payload = BytesUtil.Deserialize(br);
|
||||||
|
provider = StringUtil.Deserialize(br);
|
||||||
|
start_param = StringUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
StringUtil.Serialize(title,bw);
|
||||||
|
StringUtil.Serialize(description,bw);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
ObjectUtils.SerializeObject(photo,bw);
|
||||||
|
ObjectUtils.SerializeObject(invoice,bw);
|
||||||
|
BytesUtil.Serialize(payload,bw);
|
||||||
|
StringUtil.Serialize(provider,bw);
|
||||||
|
StringUtil.Serialize(start_param,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
48
TeleSharp.TL/TL/TLInputMessagesFilterPhoneCalls.cs
Normal file
48
TeleSharp.TL/TL/TLInputMessagesFilterPhoneCalls.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
|
||||||
|
{
|
||||||
|
[TLObject(-2134272152)]
|
||||||
|
public class TLInputMessagesFilterPhoneCalls : TLAbsMessagesFilter
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -2134272152;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool missed {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = missed ? (flags | 1) : (flags & ~1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
missed = (flags & 1) != 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
39
TeleSharp.TL/TL/TLInputMessagesFilterRoundVideo.cs
Normal file
39
TeleSharp.TL/TL/TLInputMessagesFilterRoundVideo.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(-1253451181)]
|
||||||
|
public class TLInputMessagesFilterRoundVideo : TLAbsMessagesFilter
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1253451181;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
39
TeleSharp.TL/TL/TLInputMessagesFilterRoundVoice.cs
Normal file
39
TeleSharp.TL/TL/TLInputMessagesFilterRoundVoice.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(2054952868)]
|
||||||
|
public class TLInputMessagesFilterRoundVoice : TLAbsMessagesFilter
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 2054952868;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
51
TeleSharp.TL/TL/TLInputPaymentCredentials.cs
Normal file
51
TeleSharp.TL/TL/TLInputPaymentCredentials.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
|
||||||
|
{
|
||||||
|
[TLObject(873977640)]
|
||||||
|
public class TLInputPaymentCredentials : TLAbsInputPaymentCredentials
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 873977640;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool save {get;set;}
|
||||||
|
public TLDataJSON data {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = save ? (flags | 1) : (flags & ~1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
save = (flags & 1) != 0;
|
||||||
|
data = (TLDataJSON)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
ObjectUtils.SerializeObject(data,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
TeleSharp.TL/TL/TLInputPaymentCredentialsSaved.cs
Normal file
45
TeleSharp.TL/TL/TLInputPaymentCredentialsSaved.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
|
||||||
|
{
|
||||||
|
[TLObject(-1056001329)]
|
||||||
|
public class TLInputPaymentCredentialsSaved : TLAbsInputPaymentCredentials
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1056001329;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string id {get;set;}
|
||||||
|
public byte[] tmp_password {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
id = StringUtil.Deserialize(br);
|
||||||
|
tmp_password = BytesUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
StringUtil.Serialize(id,bw);
|
||||||
|
BytesUtil.Serialize(tmp_password,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
TeleSharp.TL/TL/TLInputPhoneCall.cs
Normal file
45
TeleSharp.TL/TL/TLInputPhoneCall.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
|
||||||
|
{
|
||||||
|
[TLObject(506920429)]
|
||||||
|
public class TLInputPhoneCall : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 506920429;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public long id {get;set;}
|
||||||
|
public long access_hash {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
id = br.ReadInt64();
|
||||||
|
access_hash = br.ReadInt64();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
bw.Write(id);
|
||||||
|
bw.Write(access_hash);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
39
TeleSharp.TL/TL/TLInputPrivacyKeyPhoneCall.cs
Normal file
39
TeleSharp.TL/TL/TLInputPrivacyKeyPhoneCall.cs
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(-88417185)]
|
||||||
|
public class TLInputPrivacyKeyPhoneCall : TLAbsInputPrivacyKey
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -88417185;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
59
TeleSharp.TL/TL/TLInputStickerSetItem.cs
Normal file
59
TeleSharp.TL/TL/TLInputStickerSetItem.cs
Normal file
|
|
@ -0,0 +1,59 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(-6249322)]
|
||||||
|
public class TLInputStickerSetItem : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -6249322;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public TLAbsInputDocument document {get;set;}
|
||||||
|
public string emoji {get;set;}
|
||||||
|
public TLMaskCoords mask_coords {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = mask_coords != null ? (flags | 1) : (flags & ~1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
document = (TLAbsInputDocument)ObjectUtils.DeserializeObject(br);
|
||||||
|
emoji = StringUtil.Deserialize(br);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
mask_coords = (TLMaskCoords)ObjectUtils.DeserializeObject(br);
|
||||||
|
else
|
||||||
|
mask_coords = null;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
ObjectUtils.SerializeObject(document,bw);
|
||||||
|
StringUtil.Serialize(emoji,bw);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
ObjectUtils.SerializeObject(mask_coords,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
51
TeleSharp.TL/TL/TLInputWebDocument.cs
Normal file
51
TeleSharp.TL/TL/TLInputWebDocument.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
|
||||||
|
{
|
||||||
|
[TLObject(-1678949555)]
|
||||||
|
public class TLInputWebDocument : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1678949555;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string url {get;set;}
|
||||||
|
public int size {get;set;}
|
||||||
|
public string mime_type {get;set;}
|
||||||
|
public TLVector<TLAbsDocumentAttribute> attributes {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
url = StringUtil.Deserialize(br);
|
||||||
|
size = br.ReadInt32();
|
||||||
|
mime_type = StringUtil.Deserialize(br);
|
||||||
|
attributes = (TLVector<TLAbsDocumentAttribute>)ObjectUtils.DeserializeVector<TLAbsDocumentAttribute>(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
StringUtil.Serialize(url,bw);
|
||||||
|
bw.Write(size);
|
||||||
|
StringUtil.Serialize(mime_type,bw);
|
||||||
|
ObjectUtils.SerializeObject(attributes,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
TeleSharp.TL/TL/TLInputWebFileLocation.cs
Normal file
45
TeleSharp.TL/TL/TLInputWebFileLocation.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
|
||||||
|
{
|
||||||
|
[TLObject(-1036396922)]
|
||||||
|
public class TLInputWebFileLocation : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1036396922;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string url {get;set;}
|
||||||
|
public long access_hash {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
url = StringUtil.Deserialize(br);
|
||||||
|
access_hash = br.ReadInt64();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
StringUtil.Serialize(url,bw);
|
||||||
|
bw.Write(access_hash);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
74
TeleSharp.TL/TL/TLInvoice.cs
Normal file
74
TeleSharp.TL/TL/TLInvoice.cs
Normal file
|
|
@ -0,0 +1,74 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(-1022713000)]
|
||||||
|
public class TLInvoice : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1022713000;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool test {get;set;}
|
||||||
|
public bool name_requested {get;set;}
|
||||||
|
public bool phone_requested {get;set;}
|
||||||
|
public bool email_requested {get;set;}
|
||||||
|
public bool shipping_address_requested {get;set;}
|
||||||
|
public bool flexible {get;set;}
|
||||||
|
public string currency {get;set;}
|
||||||
|
public TLVector<TLLabeledPrice> prices {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = test ? (flags | 1) : (flags & ~1);
|
||||||
|
flags = name_requested ? (flags | 2) : (flags & ~2);
|
||||||
|
flags = phone_requested ? (flags | 4) : (flags & ~4);
|
||||||
|
flags = email_requested ? (flags | 8) : (flags & ~8);
|
||||||
|
flags = shipping_address_requested ? (flags | 16) : (flags & ~16);
|
||||||
|
flags = flexible ? (flags | 32) : (flags & ~32);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
test = (flags & 1) != 0;
|
||||||
|
name_requested = (flags & 2) != 0;
|
||||||
|
phone_requested = (flags & 4) != 0;
|
||||||
|
email_requested = (flags & 8) != 0;
|
||||||
|
shipping_address_requested = (flags & 16) != 0;
|
||||||
|
flexible = (flags & 32) != 0;
|
||||||
|
currency = StringUtil.Deserialize(br);
|
||||||
|
prices = (TLVector<TLLabeledPrice>)ObjectUtils.DeserializeVector<TLLabeledPrice>(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
StringUtil.Serialize(currency,bw);
|
||||||
|
ObjectUtils.SerializeObject(prices,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
42
TeleSharp.TL/TL/TLKeyboardButtonBuy.cs
Normal file
42
TeleSharp.TL/TL/TLKeyboardButtonBuy.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(-1344716869)]
|
||||||
|
public class TLKeyboardButtonBuy : TLAbsKeyboardButton
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1344716869;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string text {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
text = StringUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
StringUtil.Serialize(text,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
TeleSharp.TL/TL/TLLabeledPrice.cs
Normal file
45
TeleSharp.TL/TL/TLLabeledPrice.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
|
||||||
|
{
|
||||||
|
[TLObject(-886477832)]
|
||||||
|
public class TLLabeledPrice : TLObject
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -886477832;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string label {get;set;}
|
||||||
|
public long amount {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
label = StringUtil.Deserialize(br);
|
||||||
|
amount = br.ReadInt64();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
StringUtil.Serialize(label,bw);
|
||||||
|
bw.Write(amount);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
TeleSharp.TL/TL/TLMessageActionPaymentSent.cs
Normal file
45
TeleSharp.TL/TL/TLMessageActionPaymentSent.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
|
||||||
|
{
|
||||||
|
[TLObject(1080663248)]
|
||||||
|
public class TLMessageActionPaymentSent : TLAbsMessageAction
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1080663248;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string currency {get;set;}
|
||||||
|
public long total_amount {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
currency = StringUtil.Deserialize(br);
|
||||||
|
total_amount = br.ReadInt64();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
StringUtil.Serialize(currency,bw);
|
||||||
|
bw.Write(total_amount);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
74
TeleSharp.TL/TL/TLMessageActionPaymentSentMe.cs
Normal file
74
TeleSharp.TL/TL/TLMessageActionPaymentSentMe.cs
Normal file
|
|
@ -0,0 +1,74 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(-1892568281)]
|
||||||
|
public class TLMessageActionPaymentSentMe : TLAbsMessageAction
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1892568281;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public string currency {get;set;}
|
||||||
|
public long total_amount {get;set;}
|
||||||
|
public byte[] payload {get;set;}
|
||||||
|
public TLPaymentRequestedInfo info {get;set;}
|
||||||
|
public string shipping_option_id {get;set;}
|
||||||
|
public TLPaymentCharge charge {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = info != null ? (flags | 1) : (flags & ~1);
|
||||||
|
flags = shipping_option_id != null ? (flags | 2) : (flags & ~2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
currency = StringUtil.Deserialize(br);
|
||||||
|
total_amount = br.ReadInt64();
|
||||||
|
payload = BytesUtil.Deserialize(br);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
info = (TLPaymentRequestedInfo)ObjectUtils.DeserializeObject(br);
|
||||||
|
else
|
||||||
|
info = null;
|
||||||
|
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
shipping_option_id = StringUtil.Deserialize(br);
|
||||||
|
else
|
||||||
|
shipping_option_id = null;
|
||||||
|
|
||||||
|
charge = (TLPaymentCharge)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
StringUtil.Serialize(currency,bw);
|
||||||
|
bw.Write(total_amount);
|
||||||
|
BytesUtil.Serialize(payload,bw);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
ObjectUtils.SerializeObject(info,bw);
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
StringUtil.Serialize(shipping_option_id,bw);
|
||||||
|
ObjectUtils.SerializeObject(charge,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
65
TeleSharp.TL/TL/TLMessageActionPhoneCall.cs
Normal file
65
TeleSharp.TL/TL/TLMessageActionPhoneCall.cs
Normal file
|
|
@ -0,0 +1,65 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(-2132731265)]
|
||||||
|
public class TLMessageActionPhoneCall : TLAbsMessageAction
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -2132731265;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public long call_id {get;set;}
|
||||||
|
public TLAbsPhoneCallDiscardReason reason {get;set;}
|
||||||
|
public int? duration {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = reason != null ? (flags | 1) : (flags & ~1);
|
||||||
|
flags = duration != null ? (flags | 2) : (flags & ~2);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
call_id = br.ReadInt64();
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
reason = (TLAbsPhoneCallDiscardReason)ObjectUtils.DeserializeObject(br);
|
||||||
|
else
|
||||||
|
reason = null;
|
||||||
|
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
duration = br.ReadInt32();
|
||||||
|
else
|
||||||
|
duration = null;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
bw.Write(call_id);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
ObjectUtils.SerializeObject(reason,bw);
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
bw.Write(duration.Value);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
85
TeleSharp.TL/TL/TLMessageMediaInvoice.cs
Normal file
85
TeleSharp.TL/TL/TLMessageMediaInvoice.cs
Normal file
|
|
@ -0,0 +1,85 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(-2074799289)]
|
||||||
|
public class TLMessageMediaInvoice : TLAbsMessageMedia
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -2074799289;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool shipping_address_requested {get;set;}
|
||||||
|
public bool test {get;set;}
|
||||||
|
public string title {get;set;}
|
||||||
|
public string description {get;set;}
|
||||||
|
public TLWebDocument photo {get;set;}
|
||||||
|
public int? receipt_msg_id {get;set;}
|
||||||
|
public string currency {get;set;}
|
||||||
|
public long total_amount {get;set;}
|
||||||
|
public string start_param {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = shipping_address_requested ? (flags | 2) : (flags & ~2);
|
||||||
|
flags = test ? (flags | 8) : (flags & ~8);
|
||||||
|
flags = photo != null ? (flags | 1) : (flags & ~1);
|
||||||
|
flags = receipt_msg_id != null ? (flags | 4) : (flags & ~4);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
shipping_address_requested = (flags & 2) != 0;
|
||||||
|
test = (flags & 8) != 0;
|
||||||
|
title = StringUtil.Deserialize(br);
|
||||||
|
description = StringUtil.Deserialize(br);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
photo = (TLWebDocument)ObjectUtils.DeserializeObject(br);
|
||||||
|
else
|
||||||
|
photo = null;
|
||||||
|
|
||||||
|
if ((flags & 4) != 0)
|
||||||
|
receipt_msg_id = br.ReadInt32();
|
||||||
|
else
|
||||||
|
receipt_msg_id = null;
|
||||||
|
|
||||||
|
currency = StringUtil.Deserialize(br);
|
||||||
|
total_amount = br.ReadInt64();
|
||||||
|
start_param = StringUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
|
||||||
|
StringUtil.Serialize(title,bw);
|
||||||
|
StringUtil.Serialize(description,bw);
|
||||||
|
if ((flags & 1) != 0)
|
||||||
|
ObjectUtils.SerializeObject(photo,bw);
|
||||||
|
if ((flags & 4) != 0)
|
||||||
|
bw.Write(receipt_msg_id.Value);
|
||||||
|
StringUtil.Serialize(currency,bw);
|
||||||
|
bw.Write(total_amount);
|
||||||
|
StringUtil.Serialize(start_param,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
42
TeleSharp.TL/TL/TLPageBlockAnchor.cs
Normal file
42
TeleSharp.TL/TL/TLPageBlockAnchor.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(-837994576)]
|
||||||
|
public class TLPageBlockAnchor : TLAbsPageBlock
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -837994576;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string name {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
name = StringUtil.Deserialize(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
StringUtil.Serialize(name,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
TeleSharp.TL/TL/TLPageBlockAuthorDate.cs
Normal file
45
TeleSharp.TL/TL/TLPageBlockAuthorDate.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
|
||||||
|
{
|
||||||
|
[TLObject(-1162877472)]
|
||||||
|
public class TLPageBlockAuthorDate : TLAbsPageBlock
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1162877472;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLAbsRichText author {get;set;}
|
||||||
|
public int published_date {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
author = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
|
||||||
|
published_date = br.ReadInt32();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(author,bw);
|
||||||
|
bw.Write(published_date);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
TeleSharp.TL/TL/TLPageBlockBlockquote.cs
Normal file
45
TeleSharp.TL/TL/TLPageBlockBlockquote.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
|
||||||
|
{
|
||||||
|
[TLObject(641563686)]
|
||||||
|
public class TLPageBlockBlockquote : TLAbsPageBlock
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 641563686;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLAbsRichText text {get;set;}
|
||||||
|
public TLAbsRichText caption {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
text = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
|
||||||
|
caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(text,bw);
|
||||||
|
ObjectUtils.SerializeObject(caption,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
42
TeleSharp.TL/TL/TLPageBlockChannel.cs
Normal file
42
TeleSharp.TL/TL/TLPageBlockChannel.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(-283684427)]
|
||||||
|
public class TLPageBlockChannel : TLAbsPageBlock
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -283684427;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLAbsChat channel {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
channel = (TLAbsChat)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(channel,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
45
TeleSharp.TL/TL/TLPageBlockCollage.cs
Normal file
45
TeleSharp.TL/TL/TLPageBlockCollage.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
|
||||||
|
{
|
||||||
|
[TLObject(145955919)]
|
||||||
|
public class TLPageBlockCollage : TLAbsPageBlock
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 145955919;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLVector<TLAbsPageBlock> items {get;set;}
|
||||||
|
public TLAbsRichText caption {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
items = (TLVector<TLAbsPageBlock>)ObjectUtils.DeserializeVector<TLAbsPageBlock>(br);
|
||||||
|
caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(items,bw);
|
||||||
|
ObjectUtils.SerializeObject(caption,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
42
TeleSharp.TL/TL/TLPageBlockCover.cs
Normal file
42
TeleSharp.TL/TL/TLPageBlockCover.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(972174080)]
|
||||||
|
public class TLPageBlockCover : TLAbsPageBlock
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 972174080;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLAbsPageBlock cover {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
cover = (TLAbsPageBlock)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(cover,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -5,16 +5,16 @@ using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using TeleSharp.TL;
|
using TeleSharp.TL;
|
||||||
namespace TeleSharp.TL.Help
|
namespace TeleSharp.TL
|
||||||
{
|
{
|
||||||
[TLObject(-1350696044)]
|
[TLObject(-618614392)]
|
||||||
public class TLAppChangelogEmpty : TLAbsAppChangelog
|
public class TLPageBlockDivider : TLAbsPageBlock
|
||||||
{
|
{
|
||||||
public override int Constructor
|
public override int Constructor
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return -1350696044;
|
return -618614392;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
88
TeleSharp.TL/TL/TLPageBlockEmbed.cs
Normal file
88
TeleSharp.TL/TL/TLPageBlockEmbed.cs
Normal file
|
|
@ -0,0 +1,88 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(-840826671)]
|
||||||
|
public class TLPageBlockEmbed : TLAbsPageBlock
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -840826671;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int flags {get;set;}
|
||||||
|
public bool full_width {get;set;}
|
||||||
|
public bool allow_scrolling {get;set;}
|
||||||
|
public string url {get;set;}
|
||||||
|
public string html {get;set;}
|
||||||
|
public long? poster_photo_id {get;set;}
|
||||||
|
public int w {get;set;}
|
||||||
|
public int h {get;set;}
|
||||||
|
public TLAbsRichText caption {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
flags = 0;
|
||||||
|
flags = full_width ? (flags | 1) : (flags & ~1);
|
||||||
|
flags = allow_scrolling ? (flags | 8) : (flags & ~8);
|
||||||
|
flags = url != null ? (flags | 2) : (flags & ~2);
|
||||||
|
flags = html != null ? (flags | 4) : (flags & ~4);
|
||||||
|
flags = poster_photo_id != null ? (flags | 16) : (flags & ~16);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
flags = br.ReadInt32();
|
||||||
|
full_width = (flags & 1) != 0;
|
||||||
|
allow_scrolling = (flags & 8) != 0;
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
url = StringUtil.Deserialize(br);
|
||||||
|
else
|
||||||
|
url = null;
|
||||||
|
|
||||||
|
if ((flags & 4) != 0)
|
||||||
|
html = StringUtil.Deserialize(br);
|
||||||
|
else
|
||||||
|
html = null;
|
||||||
|
|
||||||
|
if ((flags & 16) != 0)
|
||||||
|
poster_photo_id = br.ReadInt64();
|
||||||
|
else
|
||||||
|
poster_photo_id = null;
|
||||||
|
|
||||||
|
w = br.ReadInt32();
|
||||||
|
h = br.ReadInt32();
|
||||||
|
caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ComputeFlags();
|
||||||
|
bw.Write(flags);
|
||||||
|
|
||||||
|
|
||||||
|
if ((flags & 2) != 0)
|
||||||
|
StringUtil.Serialize(url,bw);
|
||||||
|
if ((flags & 4) != 0)
|
||||||
|
StringUtil.Serialize(html,bw);
|
||||||
|
if ((flags & 16) != 0)
|
||||||
|
bw.Write(poster_photo_id.Value);
|
||||||
|
bw.Write(w);
|
||||||
|
bw.Write(h);
|
||||||
|
ObjectUtils.SerializeObject(caption,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
60
TeleSharp.TL/TL/TLPageBlockEmbedPost.cs
Normal file
60
TeleSharp.TL/TL/TLPageBlockEmbedPost.cs
Normal file
|
|
@ -0,0 +1,60 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(690781161)]
|
||||||
|
public class TLPageBlockEmbedPost : TLAbsPageBlock
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 690781161;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public string url {get;set;}
|
||||||
|
public long webpage_id {get;set;}
|
||||||
|
public long author_photo_id {get;set;}
|
||||||
|
public string author {get;set;}
|
||||||
|
public int date {get;set;}
|
||||||
|
public TLVector<TLAbsPageBlock> blocks {get;set;}
|
||||||
|
public TLAbsRichText caption {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
url = StringUtil.Deserialize(br);
|
||||||
|
webpage_id = br.ReadInt64();
|
||||||
|
author_photo_id = br.ReadInt64();
|
||||||
|
author = StringUtil.Deserialize(br);
|
||||||
|
date = br.ReadInt32();
|
||||||
|
blocks = (TLVector<TLAbsPageBlock>)ObjectUtils.DeserializeVector<TLAbsPageBlock>(br);
|
||||||
|
caption = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
StringUtil.Serialize(url,bw);
|
||||||
|
bw.Write(webpage_id);
|
||||||
|
bw.Write(author_photo_id);
|
||||||
|
StringUtil.Serialize(author,bw);
|
||||||
|
bw.Write(date);
|
||||||
|
ObjectUtils.SerializeObject(blocks,bw);
|
||||||
|
ObjectUtils.SerializeObject(caption,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
42
TeleSharp.TL/TL/TLPageBlockFooter.cs
Normal file
42
TeleSharp.TL/TL/TLPageBlockFooter.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(1216809369)]
|
||||||
|
public class TLPageBlockFooter : TLAbsPageBlock
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return 1216809369;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLAbsRichText text {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
text = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(text,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
42
TeleSharp.TL/TL/TLPageBlockHeader.cs
Normal file
42
TeleSharp.TL/TL/TLPageBlockHeader.cs
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
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
|
||||||
|
{
|
||||||
|
[TLObject(-1076861716)]
|
||||||
|
public class TLPageBlockHeader : TLAbsPageBlock
|
||||||
|
{
|
||||||
|
public override int Constructor
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return -1076861716;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public TLAbsRichText text {get;set;}
|
||||||
|
|
||||||
|
|
||||||
|
public void ComputeFlags()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void DeserializeBody(BinaryReader br)
|
||||||
|
{
|
||||||
|
text = (TLAbsRichText)ObjectUtils.DeserializeObject(br);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void SerializeBody(BinaryWriter bw)
|
||||||
|
{
|
||||||
|
bw.Write(Constructor);
|
||||||
|
ObjectUtils.SerializeObject(text,bw);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue