infinite polling

This commit is contained in:
Nefrace 2023-07-27 21:48:26 +03:00
parent 95e0b1952f
commit 79d4ed3540
1 changed files with 3 additions and 1 deletions

View File

@ -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 {