mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 14:37:04 +00:00
Added auto dc switching
This commit is contained in:
parent
f56ffc7c6f
commit
824ba77e12
7 changed files with 179 additions and 132 deletions
|
|
@ -4321,8 +4321,8 @@ namespace TLSharp.Core.MTProto
|
|||
Serializers.String.write(writer, this.first_name);
|
||||
Serializers.String.write(writer, this.last_name);
|
||||
Serializers.String.write(writer, this.phone);
|
||||
this.photo.Write(writer);
|
||||
this.status.Write(writer);
|
||||
//this.photo.Write(writer);
|
||||
//this.status.Write(writer);
|
||||
writer.Write(this.inactive ? 0x997275b5 : 0xbc799737);
|
||||
}
|
||||
|
||||
|
|
@ -4332,8 +4332,8 @@ namespace TLSharp.Core.MTProto
|
|||
this.first_name = Serializers.String.read(reader);
|
||||
this.last_name = Serializers.String.read(reader);
|
||||
this.phone = Serializers.String.read(reader);
|
||||
this.photo = TL.Parse<UserProfilePhoto>(reader);
|
||||
this.status = TL.Parse<UserStatus>(reader);
|
||||
//this.photo = TL.Parse<UserProfilePhoto>(reader);
|
||||
//this.status = TL.Parse<UserStatus>(reader);
|
||||
this.inactive = reader.ReadUInt32() == 0x997275b5;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue