infinite polling
This commit is contained in:
parent
95e0b1952f
commit
79d4ed3540
4
main.go
4
main.go
|
@ -36,7 +36,9 @@ func main() {
|
||||||
nechotron.SetMyCommands(api, "", echotron.BotCommandScope{Type: echotron.Any}, defaultCommands...)
|
nechotron.SetMyCommands(api, "", echotron.BotCommandScope{Type: echotron.Any}, defaultCommands...)
|
||||||
nechotron.SetMyCommands(api, "", echotron.BotCommandScope{Type: echotron.BCSTAllChatAdministrators}, allCommands...)
|
nechotron.SetMyCommands(api, "", echotron.BotCommandScope{Type: echotron.BCSTAllChatAdministrators}, allCommands...)
|
||||||
go RSSTask(&api)
|
go RSSTask(&api)
|
||||||
log.Fatal(neco.DispatchPoll())
|
for {
|
||||||
|
log.Println(neco.DispatchPoll())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func createIndexes(db *tongo.Database) error {
|
func createIndexes(db *tongo.Database) error {
|
||||||
|
|
Loading…
Reference in New Issue