jira-bot/pkg/utils/pool.go
Andrey Belvedersky 18b2d4e554 template
2021-06-03 01:59:32 +03:00

14 lines
220 B
Go

package utils
import (
"time"
telegram "gopkg.in/tucnak/telebot.v2"
)
func NewPooler(t int) *telegram.LongPoller {
tm := time.Second * time.Duration(t)
poller := &telegram.LongPoller{Timeout: tm}
return poller
}