Пример #1
0
        public override TLObject FromBytes(byte[] bytes, ref int position)
        {
            bytes.ThrowExceptionIfIncorrect(ref position, Signature);

            Flags = GetObject <TLInt>(bytes, ref position);
            Id    = GetObject <TLInt>(bytes, ref position);
            //Participants = GetObject<TLChatParticipantsBase>(bytes, ref position);
            About = GetObject <TLString>(bytes, ref position);
            if (IsSet(Flags, (int)ChannelFullFlags.Participants))
            {
                ParticipantsCount = GetObject <TLInt>(bytes, ref position);
            }
            if (IsSet(Flags, (int)ChannelFullFlags.Admins))
            {
                AdminsCount = GetObject <TLInt>(bytes, ref position);
            }
            if (IsSet(Flags, (int)ChannelFullFlags.Kicked))
            {
                KickedCount = GetObject <TLInt>(bytes, ref position);
            }
            ReadInboxMaxId       = GetObject <TLInt>(bytes, ref position);
            UnreadCount          = GetObject <TLInt>(bytes, ref position);
            UnreadImportantCount = GetObject <TLInt>(bytes, ref position);
            ChatPhoto            = GetObject <TLPhotoBase>(bytes, ref position);
            NotifySettings       = GetObject <TLPeerNotifySettingsBase>(bytes, ref position);
            ExportedInvite       = GetObject <TLExportedChatInvite>(bytes, ref position);

            return(this);
        }
Пример #2
0
        public override TLObject FromBytes(byte[] bytes, ref int position)
        {
            bytes.ThrowExceptionIfIncorrect(ref position, Signature);

            Id             = GetObject <TLInt>(bytes, ref position);
            Participants   = GetObject <TLChatParticipantsBase>(bytes, ref position);
            ChatPhoto      = GetObject <TLPhotoBase>(bytes, ref position);
            NotifySettings = GetObject <TLPeerNotifySettingsBase>(bytes, ref position);
            ExportedInvite = GetObject <TLExportedChatInvite>(bytes, ref position);

            return(this);
        }