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