def METHOD_NAME(self, from_no):
    to_send = self.messages["server"] - from_no
    logger.debug(
        f"Action:Resending messages to User. URL:{self.endpoint} "
        f"User:{self.user.id} ParticipantID:{self.id} "
        f"number of messages to be resent:{to_send} "
        f"S count server:{self.messages['server']} from:{from_no}"
    )
    self.messages["server"] -= to_send
    if to_send > len(self.messages["last_ten"]):
        # Too many messages requested. We have to abort.
        logger.debug(
            f"Action:Lot of messages requested. URL:{self.endpoint} "
            f"User:{self.user.id} ParticipantID:{self.id} "
            f"number of messages requested:{to_send}"
        )
        self.unfixable()
        return
    for message in self.messages["last_ten"][0 - to_send :]:
        self.send_message(message)