mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
work on commands
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user