bot poller time.second ,synchronous true

This commit is contained in:
“dev”
2025-07-23 12:39:17 +08:00
parent 1ab580ea13
commit 011d602ffe
+3 -2
View File
@@ -14,8 +14,9 @@ var bots *tb.Bot
func BotStart() { func BotStart() {
var err error var err error
botSetting := tb.Settings{ botSetting := tb.Settings{
Token: config.TgBotToken, Token: config.TgBotToken,
Poller: &tb.LongPoller{Timeout: 10 * time.Second}, Poller: &tb.LongPoller{Timeout: 50 * time.Second},
Synchronous: true,
} }
if config.TgProxy != "" { if config.TgProxy != "" {
botSetting.URL = config.TgProxy botSetting.URL = config.TgProxy