// <auto-generated/>
using System;

namespace Telegram.Api.TL
{
	public partial class TLUpdateDeleteChannelMessages : TLUpdateBase 
	{
		public Int32 ChannelId { get; set; }
		public TLVector<Int32> Messages { get; set; }
		public Int32 Pts { get; set; }
		public Int32 PtsCount { get; set; }

		public TLUpdateDeleteChannelMessages() { }
		public TLUpdateDeleteChannelMessages(TLBinaryReader from)
		{
			Read(from);
		}

		public override TLType TypeId { get { return TLType.UpdateDeleteChannelMessages; } }

		public override void Read(TLBinaryReader from)
		{
			ChannelId = from.ReadInt32();
			Messages = TLFactory.Read<TLVector<Int32>>(from);
			Pts = from.ReadInt32();
			PtsCount = from.ReadInt32();
		}

		public override void Write(TLBinaryWriter to)
		{
			to.Write(0xC37521C9);
			to.Write(ChannelId);
			to.WriteObject(Messages);
			to.Write(Pts);
			to.Write(PtsCount);
		}
	}
}