Example #1
0
 public virtual void Update(TLChatFullBase chatFull)
 {
     this.BotInfo        = chatFull.BotInfo;
     this.ChatPhoto      = chatFull.ChatPhoto;
     this.ExportedInvite = chatFull.ExportedInvite;
     this.Id             = chatFull.Id;
     this.NotifySettings = chatFull.NotifySettings;
 }
Example #2
0
        public override void Update(TLChatFullBase chatFull)
        {
            if (chatFull is TLChatFull chat)
            {
                this.Participants = chat.Participants;
            }

            base.Update(chatFull);
        }
Example #3
0
        public override void Update(TLChatFullBase chatFull)
        {
            if (chatFull is TLChannelFull channel)
            {
                this.Flags              = channel.Flags;
                this.About              = channel.About;
                this.ParticipantsCount  = channel.ParticipantsCount;
                this.AdminsCount        = channel.AdminsCount;
                this.KickedCount        = channel.KickedCount;
                this.ReadInboxMaxId     = channel.ReadInboxMaxId;
                this.ReadOutboxMaxId    = channel.ReadOutboxMaxId;
                this.UnreadCount        = channel.UnreadCount;
                this.MigratedFromChatId = channel.MigratedFromChatId;
                this.MigratedFromMaxId  = channel.MigratedFromMaxId;
                this.PinnedMsgId        = channel.PinnedMsgId;
            }

            base.Update(chatFull);
        }