move to correct directory

This commit is contained in:
2024-05-29 01:49:53 +03:00
parent db5cd93977
commit 615e39b326
17 changed files with 2 additions and 2 deletions
@@ -0,0 +1,9 @@
using Telegram.Bot.Types;
namespace Kruzya.TelegramBot.CustomChatAddOns.Data.InputFile
{
public interface ICustomInputFile
{
public IInputFile Convert();
}
}
@@ -0,0 +1,18 @@
using Kruzya.TelegramBot.Core.Attributes;
using Newtonsoft.Json;
using Telegram.Bot.Types;
namespace Kruzya.TelegramBot.CustomChatAddOns.Data.InputFile
{
[AllowedSerializableType("input_id_file")]
public class InputIdFile : ICustomInputFile
{
[JsonProperty("id")]
public string Id { get; set; }
public IInputFile Convert()
{
return new InputFileId(Id);
}
}
}
@@ -0,0 +1,18 @@
using Kruzya.TelegramBot.Core.Attributes;
using Newtonsoft.Json;
using Telegram.Bot.Types;
namespace Kruzya.TelegramBot.CustomChatAddOns.Data.InputFile
{
[AllowedSerializableType("input_url_file")]
public class InputUrlFile : ICustomInputFile
{
[JsonProperty("url")]
public string Url { get; set; } = "";
public IInputFile Convert()
{
return new InputFileUrl(Url);
}
}
}