From 9f7c957eac8c615a76f8778c119d546b992cc005 Mon Sep 17 00:00:00 2001 From: iyear Date: Thu, 15 Sep 2022 23:56:55 +0800 Subject: [PATCH] fix(uploader): nil media --- pkg/uploader/uploader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/uploader/uploader.go b/pkg/uploader/uploader.go index 3761683..9a470a2 100644 --- a/pkg/uploader/uploader.go +++ b/pkg/uploader/uploader.go @@ -103,7 +103,7 @@ func (u *Uploader) upload(ctx context.Context, item *Item) error { styling.Code(item.MIME), ).MIME(item.MIME).Filename(item.Name) - var media message.MediaOption + var media message.MediaOption = doc if utils.Media.IsVideo(item.MIME) { media = doc.Video().SupportsStreaming()