From b699266c42a617b7b5fa07e1c48c61c08682d1c9 Mon Sep 17 00:00:00 2001 From: Tenko Date: Wed, 12 Jun 2024 15:15:24 +0800 Subject: [PATCH] =?UTF-8?q?=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/arknightsnews/arknights_news.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/arknightsnews/arknights_news.go b/src/plugins/arknightsnews/arknights_news.go index 897388f..7ece014 100644 --- a/src/plugins/arknightsnews/arknights_news.go +++ b/src/plugins/arknightsnews/arknights_news.go @@ -43,7 +43,7 @@ func BilibiliNews() { if len(pics) == 1 { for _, group := range groups { if pics[0].Height > pics[0].Width*2 { - sendDocument := tgbotapi.NewDocument(group, tgbotapi.FileBytes{Bytes: utils.GetImg(pics[0].Url)}) + sendDocument := tgbotapi.NewDocument(group, tgbotapi.FileBytes{Bytes: utils.GetImg(pics[0].Url), Name: pics[0].Url}) sendDocument.Caption = text config.Arknights.Send(sendDocument) } else { @@ -70,7 +70,7 @@ func BilibiliNews() { for i, pic := range pics { if d { var inputDocument tgbotapi.InputMediaDocument - inputDocument.Media = tgbotapi.FileBytes{Bytes: utils.GetImg(pic.Url)} + inputDocument.Media = tgbotapi.FileBytes{Bytes: utils.GetImg(pic.Url), Name: pic.Url} inputDocument.Type = "document" if i == len(pics)-1 { inputDocument.Caption = text