14 lines
220 B
Go
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
|
|
}
|