2018-02-20 15:34:50 +00:00
|
|
|
package bot
|
|
|
|
|
2018-06-24 17:37:20 +00:00
|
|
|
import tg "gitlab.com/toby3d/telegram"
|
2018-02-20 15:34:50 +00:00
|
|
|
|
2018-03-26 13:10:36 +00:00
|
|
|
// Bot is a main object of Telegram bot
|
2018-02-20 15:34:50 +00:00
|
|
|
var Bot *tg.Bot
|
|
|
|
|
|
|
|
// New just create new bot by configuration credentials
|
2018-06-24 17:37:20 +00:00
|
|
|
func New(accessToken string) (bot *tg.Bot, err error) {
|
2018-04-19 15:16:17 +00:00
|
|
|
return tg.New(accessToken)
|
2018-02-20 15:34:50 +00:00
|
|
|
}
|