Add SendMediaGroup method.
This commit is contained in:
parent
5781187bc2
commit
fa40708257
2 changed files with 25 additions and 1 deletions
11
bot_test.go
11
bot_test.go
|
@ -517,10 +517,19 @@ func TestSendWithMediaGroup(t *testing.T) {
|
|||
NewInputMediaPhoto("https://i.imgur.com/J5qweNZ.jpg"),
|
||||
NewInputMediaVideo("https://i.imgur.com/F6RmI24.mp4"),
|
||||
})
|
||||
_, err := bot.Request(cfg)
|
||||
|
||||
messages, err := bot.SendMediaGroup(cfg)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
|
||||
if messages == nil {
|
||||
t.Error()
|
||||
}
|
||||
|
||||
if len(messages) != 3 {
|
||||
t.Error()
|
||||
}
|
||||
}
|
||||
|
||||
func ExampleNewBotAPI() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue