def invite(self, roomJID, invitee, reason=None):
    '\n        Invite a xmpp entity to a MUC room.\n\n        See: http://xmpp.org/extensions/xep-0045.html#invite\n\n        @param roomJID: The bare JID of the room.\n        @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param invitee: The entity that is being invited.\n        @type invitee: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param reason: The reason for the invite.\n        @type reason: C{unicode}\n        '
    message = InviteMessage(recipient=roomJID, invitee=invitee, reason=reason)
    self.send(message.toElement())
Invite a xmpp entity to a MUC room.

See: http://xmpp.org/extensions/xep-0045.html#invite

@param roomJID: The bare JID of the room.
@type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}

@param invitee: The entity that is being invited.
@type invitee: L{JID<twisted.words.protocols.jabber.jid.JID>}

@param reason: The reason for the invite.
@type reason: C{unicode}
def invite(self, roomJID, invitee, reason=None):
    '\n        Invite a xmpp entity to a MUC room.\n\n        See: http://xmpp.org/extensions/xep-0045.html#invite\n\n        @param roomJID: The bare JID of the room.\n        @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param invitee: The entity that is being invited.\n        @type invitee: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param reason: The reason for the invite.\n        @type reason: C{unicode}\n        '
    message = InviteMessage(recipient=roomJID, invitee=invitee, reason=reason)
    self.send(message.toElement())