Пример #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));
        }