This commit is contained in:
3err0 2019-06-23 12:43:02 +08:00
parent a35e1e456b
commit 05685cd51a

View File

@ -29,6 +29,10 @@ def file_ext(filename):
def send_welcome(message):
bot.reply_to(message, "Я тупая машина, и я ничего не умею")
@bot.message_handler(commands=['id', 'myid'])
def my_id(message):
bot.send_message(message.chat.id, 'Твой ID: ' + str(message.chat.id))
@bot.message_handler(func=lambda message: True)
def echo_message(message):
bot.reply_to(message, message.text)