summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tgbot.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tgbot.py b/tgbot.py
new file mode 100644
index 0000000..e034239
--- /dev/null
+++ b/tgbot.py
@@ -0,0 +1,14 @@
+#!/usr/bin/python3
+import telebot
+
+bot = telebot.TeleBot('6860285100:AAFkBS_ncl38XN4_Em_nzSt93Jlwc5BJ9mU')
+
+@bot.message_handler(commands = ['start'])
+def url(message):
+ bot.reply_to(message, "This bot is doing nothing so far..")
+
+@bot.message_handler(func=lambda message: True)
+def echo_message(message):
+ bot.reply_to(message, message.text)
+
+bot.polling(none_stop=True, interval=0) \ No newline at end of file