mirror of
				https://github.com/eternnoir/pyTelegramBotAPI.git
				synced 2023-08-10 21:12:57 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			350 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			350 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import telebot
 | |
| 
 | |
| bot = telebot.TeleBot("TOKEN")
 | |
| 
 | |
| @bot.message_handler(commands=['start', 'help'])
 | |
| def send_welcome(message):
 | |
| 	bot.reply_to(message, "Howdy, how are you doing?")
 | |
| 
 | |
| @bot.message_handler(func=lambda message: True)
 | |
| def echo_all(message):
 | |
| 	bot.reply_to(message, message.text)
 | |
| 
 | |
| bot.polling(skip_pending=True,non_stop=True) # Skip old updates
 | 
