def log(message):
print("<!------!>")
from datetime import datetime
print(datetime.now())
print("Сообщение от {0} {1} (id = {2}) \n {3}".format(message.from_user.first_name,
message.from_user.last_name,
str(message.from_user.id), message.text))
@bot.message_handler(commands=['start'])
def cmd_start(message):
bot.send_message(message.from_user.id, 'Привет')
log(message)