From 79d4ed3540041d4b5f574d85da8f5412857966ab Mon Sep 17 00:00:00 2001 From: Nefrace Date: Thu, 27 Jul 2023 21:48:26 +0300 Subject: [PATCH] infinite polling --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index c2e3e56..1afa0aa 100644 --- a/main.go +++ b/main.go @@ -36,7 +36,9 @@ func main() { nechotron.SetMyCommands(api, "", echotron.BotCommandScope{Type: echotron.Any}, defaultCommands...) nechotron.SetMyCommands(api, "", echotron.BotCommandScope{Type: echotron.BCSTAllChatAdministrators}, allCommands...) go RSSTask(&api) - log.Fatal(neco.DispatchPoll()) + for { + log.Println(neco.DispatchPoll()) + } } func createIndexes(db *tongo.Database) error {