Spaces:
kuro223
/
Runtime error

Docfile commited on
Commit
81d8b1f
·
1 Parent(s): c1e374d

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import telebot
2
+
3
+ bot = telebot.TeleBot("6459409517:AAFt4bQkR5T2Wl-ojErf2yv-_I0LxF87QFQ")
4
+
5
+ @bot.message_handler(commands=['start', 'help'])
6
+ def send_welcome(message):
7
+ bot.reply_to(message, "Howdy, how are you doing?")
8
+
9
+ @bot.message_handler(func=lambda message: True)
10
+ def echo_all(message):
11
+ bot.reply_to(message, message.text)
12
+
13
+ bot.infinity_polling()