Improve usability of new files for configs.

This commit is contained in:
Syfaro 2020-07-25 21:20:05 -05:00
parent ce4fc988c9
commit 99b74b8efa
3 changed files with 154 additions and 108 deletions

View file

@ -216,7 +216,7 @@ func TestSendWithNewDocumentAndThumb(t *testing.T) {
bot, _ := getBot(t)
msg := NewDocument(ChatID, "tests/voice.ogg")
msg.AddFile("thumb", "tests/image.jpg")
msg.Thumb = "tests/image.jpg"
_, err := bot.Send(msg)
if err != nil {
@ -242,8 +242,6 @@ func TestSendWithNewAudio(t *testing.T) {
msg.Title = "TEST"
msg.Duration = 10
msg.Performer = "TEST"
msg.MimeType = "audio/mpeg"
msg.FileSize = 688
_, err := bot.Send(msg)
if err != nil {