1
This repository has been archived on 2022-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
fwzookeeper_helper/internal/telegram/exported.go

29 lines
542 B
Go
Raw Normal View History

2018-12-04 08:32:11 +04:00
// Fantasy World Zookeeper Helper Bot
// Copyright (c) 2018 Vladimir "fat0troll" Hodakov
package telegram
import (
tdlib "github.com/Arman92/go-tdlib"
"github.com/rs/zerolog"
2019-10-08 05:40:29 +04:00
"source.hodakov.me/fat0troll/fwzookeeper_helper/context"
2018-12-04 08:32:11 +04:00
)
var (
c *context.Context
log zerolog.Logger
client *tdlib.Client
)
// New initializes package
func New(cc *context.Context) {
c = cc
log = c.Logger.With().Str("domain", "telegram").Int("version", 1).Logger()
log.Info().Msg("Starting Telegram MTProto instance")
Authenticate()
Connect()
2018-12-04 08:32:11 +04:00
}