Skip to content

Commit

Permalink
Compatibility with mtproto
Browse files Browse the repository at this point in the history
  • Loading branch information
shelomentsevd committed Dec 6, 2017
1 parent e253831 commit 4a45ad1
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import (
"github.com/shelomentsevd/mtproto"
)

const telegramAddress = "149.154.167.50:443"
const updatePeriod = time.Second * 2

type Command struct {
Expand Down Expand Up @@ -494,19 +493,9 @@ func main() {

log.SetOutput(logfile)
log.Println("Program started")
// Application configuration
configuration, err := mtproto.NewConfiguration(41994,
"269069e15c81241f5670c397941016a2",
"0.0.1",
"",
"",
"")
if err != nil {
log.Fatal(err)
}

// LoadContacts
mtproto, err := mtproto.NewMTProto(false, telegramAddress, false, os.Getenv("HOME")+"/.telegramgo", *configuration)
mtproto, err := mtproto.NewMTProto(41994, "269069e15c81241f5670c397941016a2", mtproto.WithAuthFile(os.Getenv("HOME")+"/.telegramgo", false))
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 4a45ad1

Please sign in to comment.