def internal_send_huddle_message(realm: Realm, sender: UserProfile, emails: List[str], content: str) -> Optional[int]:
    addressee = Addressee.for_private(emails, realm)
    message = _internal_prep_message(realm=realm, sender=sender, addressee=addressee, content=content)
    if (message is None):
        return None
    message_ids = do_send_messages([message])
    return message_ids[0]
def internal_send_huddle_message(realm: Realm, sender: UserProfile, emails: List[str], content: str) -> Optional[int]:
    addressee = Addressee.for_private(emails, realm)
    message = _internal_prep_message(realm=realm, sender=sender, addressee=addressee, content=content)
    if (message is None):
        return None
    message_ids = do_send_messages([message])
    return message_ids[0]