Some refactorings for telegram package

This commit is contained in:
9seconds
2019-10-08 14:08:34 +03:00
parent 6c7edfb7db
commit 3ae69183aa
6 changed files with 45 additions and 37 deletions
-3
View File
@@ -4,15 +4,12 @@ import (
"fmt"
"math/rand"
"net"
"time"
"github.com/9seconds/mtg/conntypes"
"github.com/9seconds/mtg/utils"
"github.com/9seconds/mtg/wrappers"
)
const telegramDialTimeout = 10 * time.Second
type baseTelegram struct {
dialer net.Dialer