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

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