def send_throttle(self, key: str) -> None:
    limit = self.protocol.ratelimit.get_limit(key)
    if (limit is None):
        return
    (max_hits, window_seconds) = limit
    payload = '{} At most {} hits every {} seconds'.format(key, max_hits, window_seconds)
    self.protocol.send_message(ProtocolMessages.THROTTLE, payload)
def send_throttle(self, key: str) -> None:
    limit = self.protocol.ratelimit.get_limit(key)
    if (limit is None):
        return
    (max_hits, window_seconds) = limit
    payload = '{} At most {} hits every {} seconds'.format(key, max_hits, window_seconds)
    self.protocol.send_message(ProtocolMessages.THROTTLE, payload)