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

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