Last active
January 19, 2017 09:10
-
-
Save puzanov/8356f54cc78dbdccfa582a0cf8aee195 to your computer and use it in GitHub Desktop.
Telegram Bot Audio Upload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| msg := tgbotapi.NewAudioUpload(ChatID, "tests/audio.mp3") | |
| msg.Title = "TEST" | |
| msg.Duration = 10 | |
| msg.Performer = "TEST" | |
| msg.MimeType = "audio/mpeg" | |
| msg.FileSize = 688 | |
| _, err := bot.Send(msg) | |
| if err != nil { | |
| t.Error(err) | |
| t.Fail() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment