<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def class_name_teleflask_message(self) -> str: """ If it starts with `Send` remove that. """

        # strip leading "Send"
        name = self.class_name  # "sendPhoto" -> "SendPhoto"
        name = name[4:] if name.startswith('Send') else name  # "SendPhoto" -> "Photo"
        name = name + "Message"  # "Photo" -> "PhotoMessage"

        # e.g. "MessageMessage" will be replaced as "TextMessage"
        # b/c "sendMessage" -> "SendMessage" -> "Message" -> "MessageMessage"  ==> "TextMessage"
        if name in MESSAGE_CLASS_OVERRIDES:
            return MESSAGE_CLASS_OVERRIDES[name]
        # end if
        return name