diff --git a/xmpp_tg/xmpp.py b/xmpp_tg/xmpp.py index 96e9504..cd12bf2 100644 --- a/xmpp_tg/xmpp.py +++ b/xmpp_tg/xmpp.py @@ -108,7 +108,7 @@ class XMPPTelegram(ComponentXMPP): self.process_command(iq) else: self.gate_reply_message(iq, 'Only commands accepted. Try !help for more info.') - else: # --- outgoing message --- + elif iq['type'] == 'chat': # --- outgoing message --- if jid in self.tg_connections and self.tg_connections[jid].is_user_authorized(): if iq['body'].startswith('!'): # it is command! if iq['to'].bare.startswith( ('u', 'b') ):