add mltiline

This commit is contained in:
omarm 2017-04-13 14:11:11 +03:00
parent 759c76b899
commit 8daabc8d3c
2 changed files with 22 additions and 2 deletions

View file

@ -23,7 +23,17 @@ namespace TeleSharp.TL
public string mime_type {get;set;} public string mime_type {get;set;}
public TLVector<TLAbsDocumentAttribute> attributes {get;set;} public TLVector<TLAbsDocumentAttribute> attributes {get;set;}
private string caption; private string caption;
public string Caption { get { return caption; } set { caption = value.Length > 200 ? value.Remove(199, value.Length - 199) : value; } } public string Caption
{
get
{
return caption;
}
set
{
caption = value.Length > 200 ? value.Remove(199, value.Length - 199) : value;
}
}
public TLVector<TLAbsInputDocument> stickers {get;set;} public TLVector<TLAbsInputDocument> stickers {get;set;}

View file

@ -21,7 +21,17 @@ namespace TeleSharp.TL
public int flags {get;set;} public int flags {get;set;}
public TLAbsInputFile file {get;set;} public TLAbsInputFile file {get;set;}
private string caption; private string caption;
public string Caption { get { return caption; } set { caption = value.Length > 200 ? value.Remove(199, value.Length - 199) : value; } } public string Caption
{
get
{
return caption;
}
set
{
caption = value.Length > 200 ? value.Remove(199, value.Length - 199) : value;
}
}
public TLVector<TLAbsInputDocument> stickers {get;set;} public TLVector<TLAbsInputDocument> stickers {get;set;}