Create app.py
Browse files
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()
|