Add initial support for sendMediaGroup.

This commit is contained in:
Syfaro 2018-09-21 20:20:28 -05:00
parent 7ff5871e28
commit 898e79fe47
5 changed files with 91 additions and 1 deletions

3
log.go
View file

@ -1,13 +1,14 @@
package tgbotapi
import (
"os"
"errors"
stdlog "log"
"os"
)
var log = stdlog.New(os.Stderr, "", stdlog.LstdFlags)
// SetLogger specifies the logger that the package should use.
func SetLogger(newLog *stdlog.Logger) error {
if newLog == nil {
return errors.New("logger is nil")