tell user max length

This commit is contained in:
omarm 2017-04-18 11:14:19 +03:00
parent 3ff7055b51
commit b770be09a4

View file

@ -31,7 +31,14 @@ namespace TeleSharp.TL
} }
set set
{ {
caption = value.Length > 200 ? value.Remove(199, value.Length - 199) : value; if (value.Length > 200)
{
throw new System.ArgumentException("too long caption plase make it less than 200 char");
}
else
{
caption = value;
}
} }
} }
public TLVector<TLAbsInputDocument> stickers {get;set;} public TLVector<TLAbsInputDocument> stickers {get;set;}