mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 22:47:00 +00:00
UserFullConstructor : UserFull no accepts self id.
Added test method to GetUserFull Added info to README.md
This commit is contained in:
parent
2fff2d11c2
commit
6365297aaf
7 changed files with 98 additions and 3 deletions
|
|
@ -7126,10 +7126,15 @@ namespace TLSharp.Core.MTProto
|
|||
|
||||
public override void Read(BinaryReader reader)
|
||||
{
|
||||
this.user = new UserRequestConstructor();
|
||||
uint dataCode = reader.ReadUInt32();
|
||||
if (reader.ReadUInt32() == 0x7007b451)
|
||||
{
|
||||
this.user = new UserSelfConstructor();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.user = new UserRequestConstructor();
|
||||
}
|
||||
this.user.Read(reader);
|
||||
|
||||
this.link = TL.Parse<contacts_Link>(reader);
|
||||
this.profile_photo = TL.Parse<Photo>(reader);
|
||||
this.notify_settings = TL.Parse<PeerNotifySettings>(reader);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue