infinite polling
This commit is contained in:
		
							
								
								
									
										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.BCSTAllChatAdministrators}, allCommands...)
 | 
			
		||||
	go RSSTask(&api)
 | 
			
		||||
	log.Fatal(neco.DispatchPoll())
 | 
			
		||||
	for {
 | 
			
		||||
		log.Println(neco.DispatchPoll())
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func createIndexes(db *tongo.Database) error {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user