Beispiel #1
0
 def keys_set(self):
     with AxolotlOptionalModule(
             failMessage=self.__class__.FAIL_OPT_AXOLOTL) as axoOptMod:
         from yowsup.layers.axolotl import YowAxolotlLayer
         if self.assertConnected():
             self.broadcastEvent(
                 YowLayerEvent(YowAxolotlLayer.EVENT_PREKEYS_SET))
Beispiel #2
0
 def keys_get(self, jids):
     with AxolotlOptionalModule(failMessage = self.__class__.FAIL_OPT_AXOLOTL) as importFn:
         importFn()
         from yowsup.layers.axolotl.protocolentities.iq_key_get import GetKeysIqProtocolEntity
         if self.assertConnected():
             jids = [self.aliasToJid(jid) for jid in jids.split(',')]
             entity = GetKeysIqProtocolEntity(jids)
             self.toLower(entity)