Ignore commands
This commit is contained in:
		
							
								
								
									
										3
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								main.go
									
									
									
									
									
								
							@@ -103,7 +103,8 @@ func main() {
 | 
			
		||||
			return
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		if update.Message != nil && update.Message.Text != "" {
 | 
			
		||||
		// Ignore if Text is empty or is a command
 | 
			
		||||
		if update.Message != nil && update.Message.Text != "" && update.Message.Text[0] != '/' {
 | 
			
		||||
 | 
			
		||||
			chatID := update.Message.Chat.ID
 | 
			
		||||
			g, _ := chats.LoadOrStore(chatID, glist.NewGList(chatID))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user