add /start and /ping commands
This commit is contained in:
		
							parent
							
								
									cd1e9c27e9
								
							
						
					
					
						commit
						ef59416ab6
					
				
							
								
								
									
										2
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.go
									
									
									
									
									
								
							| @ -91,7 +91,7 @@ func run() { | |||||||
| 		case commands.Help: | 		case commands.Help: | ||||||
| 			_, _ = bot.Send(tgbot.NewMessage(chatID, "Вот что я умею:\n\n1) Позвать всех")) | 			_, _ = bot.Send(tgbot.NewMessage(chatID, "Вот что я умею:\n\n1) Позвать всех")) | ||||||
| 		case commands.Ping: | 		case commands.Ping: | ||||||
| 			_, _ = bot.Send(tgbot.NewMessage(chatID, "pong")) | 			_, _ = bot.Send(tgbot.NewMessage(chatID, "pong v2")) | ||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user