def check_ready(update): if get_dmesg_time() <= 3: telebot.logger.warning('Skip update.') return False return True