Improve usability of new files for configs.
This commit is contained in:
parent
ce4fc988c9
commit
99b74b8efa
3 changed files with 154 additions and 108 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue