summaryrefslogtreecommitdiff
path: root/tgbot.py
blob: e034239b66b8a14f862407dae08457eb88faafcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)