2024-05-13 21:53:41 +00:00
|
|
|
namespace BotSharp.Abstraction.Files.Models;
|
|
|
|
|
|
2024-08-28 18:43:37 +00:00
|
|
|
public class MessageFileModel : FileInformation
|
2024-05-13 21:53:41 +00:00
|
|
|
{
|
|
|
|
|
[JsonPropertyName("message_id")]
|
|
|
|
|
public string MessageId { get; set; }
|
|
|
|
|
|
2024-06-06 19:57:41 +00:00
|
|
|
[JsonPropertyName("file_source")]
|
2025-09-16 20:48:54 +00:00
|
|
|
public string FileSource { get; set; } = Enums.FileSource.User;
|
2024-06-06 19:57:41 +00:00
|
|
|
|
2025-09-12 22:17:03 +00:00
|
|
|
[JsonPropertyName("file_index")]
|
|
|
|
|
public string FileIndex { get; set; } = string.Empty;
|
|
|
|
|
|
2024-05-13 21:53:41 +00:00
|
|
|
public MessageFileModel()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
2024-08-08 18:34:50 +00:00
|
|
|
return $"File name: {FileName}, File extension: {FileExtension}, Content type: {ContentType}, Source: {FileSource}";
|
2024-05-13 21:53:41 +00:00
|
|
|
}
|
|
|
|
|
}
|