mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
19 lines
444 B
C#
19 lines
444 B
C#
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);
|
|
}
|
|
}
|
|
}
|