work on commands

This commit is contained in:
2024-05-29 01:48:45 +03:00
parent 56296843f3
commit db5cd93977
9 changed files with 170 additions and 0 deletions
@@ -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);
}
}
}