From bcbcc71585cb19db7b070464907522a6b8115a82 Mon Sep 17 00:00:00 2001 From: ue86388 Date: Thu, 21 Mar 2024 16:44:46 +0100 Subject: 'Initial' --- tgbot.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tgbot.py (limited to 'tgbot.py') 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 -- cgit v1.2.3