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_id_file")]
|
||||
public class InputIdFile : ICustomInputFile
|
||||
{
|
||||
[JsonProperty("id")]
|
||||
public string Id { get; set; }
|
||||
|
||||
public IInputFile Convert()
|
||||
{
|
||||
return new InputFileId(Id);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user