예제 #1
0
 public static InputMediaPhoto ToTgPhoto(IOutAttachment attachment)
 => new InputMediaPhoto(ToTgMedia(attachment));
예제 #2
0
 public static InputMediaVideo ToTgVideo(IOutAttachment attachment)
 => new InputMediaVideo(ToTgMedia(attachment));
예제 #3
0
        public static InputMedia ToTgMedia(IOutAttachment attachment)
        {
            var data = attachment.GetStream();

            return(new InputMedia(data, attachment.FullName));
        }