Update some forgotten items.

This commit is contained in:
Syfaro 2020-07-26 16:06:22 -05:00
parent a45216f441
commit f2cd95670d
4 changed files with 19 additions and 29 deletions

View file

@ -120,7 +120,7 @@ func TestSendWithNewPhotoWithFileReader(t *testing.T) {
bot, _ := getBot(t)
f, _ := os.Open("tests/image.jpg")
reader := FileReader{Name: "image.jpg", Reader: f, Size: -1}
reader := FileReader{Name: "image.jpg", Reader: f}
msg := NewPhoto(ChatID, reader)
msg.Caption = "Test"
@ -177,7 +177,7 @@ func TestSendNewPhotoToChannelFileReader(t *testing.T) {
bot, _ := getBot(t)
f, _ := os.Open("tests/image.jpg")
reader := FileReader{Name: "image.jpg", Reader: f, Size: -1}
reader := FileReader{Name: "image.jpg", Reader: f}
msg := NewPhotoToChannel(Channel, reader)
msg.Caption = "Test"