diff options
author | ue86388 <dmitrii.morozov@sbb.ch> | 2024-03-21 16:44:46 +0100 |
---|---|---|
committer | ue86388 <dmitrii.morozov@sbb.ch> | 2024-03-21 16:44:46 +0100 |
commit | bcbcc71585cb19db7b070464907522a6b8115a82 (patch) | |
tree | 70803c47938681b9481b06f83237f3c3e66cd88b |
'Initial'
-rw-r--r-- | tgbot.py | 14 |
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 |