Друзья, кому интересен реализованный код:
@bot.message_handler(func=lambda message: True)
def echo_all(message):
if message.from_user.id not in last_message:
last_message[message.from_user.id] = message.date - 5
print(last_message)
if message.date - last_message[message.from_user.id] > 5:
bot.reply_to(message, message.text)
last_message[message.from_user.id] = message.date
print(last_message)
last_message = {}
bot.polling()