mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
tell user max length
This commit is contained in:
parent
3ff7055b51
commit
b770be09a4
|
|
@ -31,7 +31,14 @@ namespace TeleSharp.TL
|
|||
}
|
||||
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;}
|
||||
|
|
|
|||
Loading…
Reference in a new issue