mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-20 22:05:10 +00:00
Merge 6c7ec7f91a into 0015cf494b
This commit is contained in:
commit
618824594f
6 changed files with 18 additions and 10 deletions
|
|
@ -67,11 +67,11 @@ namespace TeleSharp.TL.Account
|
||||||
ComputeFlags();
|
ComputeFlags();
|
||||||
bw.Write(flags);
|
bw.Write(flags);
|
||||||
if ((flags & 1) != 0)
|
if ((flags & 1) != 0)
|
||||||
|
{
|
||||||
BytesUtil.Serialize(new_salt, bw);
|
BytesUtil.Serialize(new_salt, bw);
|
||||||
if ((flags & 1) != 0)
|
|
||||||
BytesUtil.Serialize(new_password_hash, bw);
|
BytesUtil.Serialize(new_password_hash, bw);
|
||||||
if ((flags & 1) != 0)
|
|
||||||
StringUtil.Serialize(hint, bw);
|
StringUtil.Serialize(hint, bw);
|
||||||
|
}
|
||||||
if ((flags & 2) != 0)
|
if ((flags & 2) != 0)
|
||||||
StringUtil.Serialize(email, bw);
|
StringUtil.Serialize(email, bw);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -89,9 +89,10 @@ namespace TeleSharp.TL.Payments
|
||||||
bw.Write(provider_id);
|
bw.Write(provider_id);
|
||||||
StringUtil.Serialize(url, bw);
|
StringUtil.Serialize(url, bw);
|
||||||
if ((flags & 16) != 0)
|
if ((flags & 16) != 0)
|
||||||
|
{
|
||||||
StringUtil.Serialize(native_provider, bw);
|
StringUtil.Serialize(native_provider, bw);
|
||||||
if ((flags & 16) != 0)
|
|
||||||
ObjectUtils.SerializeObject(native_params, bw);
|
ObjectUtils.SerializeObject(native_params, bw);
|
||||||
|
}
|
||||||
if ((flags & 1) != 0)
|
if ((flags & 1) != 0)
|
||||||
ObjectUtils.SerializeObject(saved_info, bw);
|
ObjectUtils.SerializeObject(saved_info, bw);
|
||||||
if ((flags & 2) != 0)
|
if ((flags & 2) != 0)
|
||||||
|
|
|
||||||
|
|
@ -118,13 +118,15 @@ namespace TeleSharp.TL
|
||||||
if ((flags & 16) != 0)
|
if ((flags & 16) != 0)
|
||||||
StringUtil.Serialize(thumb_url, bw);
|
StringUtil.Serialize(thumb_url, bw);
|
||||||
if ((flags & 32) != 0)
|
if ((flags & 32) != 0)
|
||||||
|
{
|
||||||
StringUtil.Serialize(content_url, bw);
|
StringUtil.Serialize(content_url, bw);
|
||||||
if ((flags & 32) != 0)
|
|
||||||
StringUtil.Serialize(content_type, bw);
|
StringUtil.Serialize(content_type, bw);
|
||||||
|
}
|
||||||
if ((flags & 64) != 0)
|
if ((flags & 64) != 0)
|
||||||
|
{
|
||||||
bw.Write(w.Value);
|
bw.Write(w.Value);
|
||||||
if ((flags & 64) != 0)
|
|
||||||
bw.Write(h.Value);
|
bw.Write(h.Value);
|
||||||
|
}
|
||||||
if ((flags & 128) != 0)
|
if ((flags & 128) != 0)
|
||||||
bw.Write(duration.Value);
|
bw.Write(duration.Value);
|
||||||
ObjectUtils.SerializeObject(send_message, bw);
|
ObjectUtils.SerializeObject(send_message, bw);
|
||||||
|
|
|
||||||
|
|
@ -122,9 +122,10 @@ namespace TeleSharp.TL
|
||||||
ObjectUtils.SerializeObject(exported_invite, bw);
|
ObjectUtils.SerializeObject(exported_invite, bw);
|
||||||
ObjectUtils.SerializeObject(bot_info, bw);
|
ObjectUtils.SerializeObject(bot_info, bw);
|
||||||
if ((flags & 16) != 0)
|
if ((flags & 16) != 0)
|
||||||
|
{
|
||||||
bw.Write(migrated_from_chat_id.Value);
|
bw.Write(migrated_from_chat_id.Value);
|
||||||
if ((flags & 16) != 0)
|
|
||||||
bw.Write(migrated_from_max_id.Value);
|
bw.Write(migrated_from_max_id.Value);
|
||||||
|
}
|
||||||
if ((flags & 32) != 0)
|
if ((flags & 32) != 0)
|
||||||
bw.Write(pinned_msg_id.Value);
|
bw.Write(pinned_msg_id.Value);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -118,13 +118,15 @@ namespace TeleSharp.TL
|
||||||
if ((flags & 16) != 0)
|
if ((flags & 16) != 0)
|
||||||
StringUtil.Serialize(thumb_url, bw);
|
StringUtil.Serialize(thumb_url, bw);
|
||||||
if ((flags & 32) != 0)
|
if ((flags & 32) != 0)
|
||||||
|
{
|
||||||
StringUtil.Serialize(content_url, bw);
|
StringUtil.Serialize(content_url, bw);
|
||||||
if ((flags & 32) != 0)
|
|
||||||
StringUtil.Serialize(content_type, bw);
|
StringUtil.Serialize(content_type, bw);
|
||||||
|
}
|
||||||
if ((flags & 64) != 0)
|
if ((flags & 64) != 0)
|
||||||
|
{
|
||||||
bw.Write(w.Value);
|
bw.Write(w.Value);
|
||||||
if ((flags & 64) != 0)
|
|
||||||
bw.Write(h.Value);
|
bw.Write(h.Value);
|
||||||
|
}
|
||||||
if ((flags & 128) != 0)
|
if ((flags & 128) != 0)
|
||||||
bw.Write(duration.Value);
|
bw.Write(duration.Value);
|
||||||
ObjectUtils.SerializeObject(send_message, bw);
|
ObjectUtils.SerializeObject(send_message, bw);
|
||||||
|
|
|
||||||
|
|
@ -152,13 +152,15 @@ namespace TeleSharp.TL
|
||||||
if ((flags & 16) != 0)
|
if ((flags & 16) != 0)
|
||||||
ObjectUtils.SerializeObject(photo, bw);
|
ObjectUtils.SerializeObject(photo, bw);
|
||||||
if ((flags & 32) != 0)
|
if ((flags & 32) != 0)
|
||||||
|
{
|
||||||
StringUtil.Serialize(embed_url, bw);
|
StringUtil.Serialize(embed_url, bw);
|
||||||
if ((flags & 32) != 0)
|
|
||||||
StringUtil.Serialize(embed_type, bw);
|
StringUtil.Serialize(embed_type, bw);
|
||||||
|
}
|
||||||
if ((flags & 64) != 0)
|
if ((flags & 64) != 0)
|
||||||
|
{
|
||||||
bw.Write(embed_width.Value);
|
bw.Write(embed_width.Value);
|
||||||
if ((flags & 64) != 0)
|
|
||||||
bw.Write(embed_height.Value);
|
bw.Write(embed_height.Value);
|
||||||
|
}
|
||||||
if ((flags & 128) != 0)
|
if ((flags & 128) != 0)
|
||||||
bw.Write(duration.Value);
|
bw.Write(duration.Value);
|
||||||
if ((flags & 256) != 0)
|
if ((flags & 256) != 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue