Merge pull request #6 from tmpMeM/main

bot poller time.second ,synchronous true
This commit is contained in:
dbidib
2025-07-23 12:42:50 +08:00
committed by GitHub
+3 -2
View File
@@ -14,8 +14,9 @@ var bots *tb.Bot
func BotStart() {
var err error
botSetting := tb.Settings{
Token: config.TgBotToken,
Poller: &tb.LongPoller{Timeout: 10 * time.Second},
Token: config.TgBotToken,
Poller: &tb.LongPoller{Timeout: 50 * time.Second},
Synchronous: true,
}
if config.TgProxy != "" {
botSetting.URL = config.TgProxy