public static InputMediaPhoto ToTgPhoto(IOutAttachment attachment) => new InputMediaPhoto(ToTgMedia(attachment));
public static InputMediaVideo ToTgVideo(IOutAttachment attachment) => new InputMediaVideo(ToTgMedia(attachment));
public static InputMedia ToTgMedia(IOutAttachment attachment) { var data = attachment.GetStream(); return(new InputMedia(data, attachment.FullName)); }