Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
IJNKAWAKAZE committed Jun 12, 2024
1 parent a1aaac2 commit b699266
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/arknightsnews/arknights_news.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit b699266

Please sign in to comment.