-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
59 changed files
with
2,882 additions
and
1,236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include yowsup/common/mime.types |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,11 +8,9 @@ | |
import datetime | ||
import os | ||
import logging | ||
from yowsup.layers.protocol_receipts.protocolentities import * | ||
from yowsup.layers.protocol_groups.protocolentities import * | ||
from yowsup.layers.protocol_presence.protocolentities import * | ||
from yowsup.layers.protocol_messages.protocolentities import * | ||
from yowsup.layers.protocol_acks.protocolentities import * | ||
from yowsup.layers.protocol_ib.protocolentities import * | ||
from yowsup.layers.protocol_iq.protocolentities import * | ||
from yowsup.layers.protocol_contacts.protocolentities import * | ||
|
@@ -25,7 +23,6 @@ | |
from yowsup.common.optionalmodules import PILOptionalModule, AxolotlOptionalModule | ||
|
||
logger = logging.getLogger(__name__) | ||
|
||
class YowsupCliLayer(Cli, YowInterfaceLayer): | ||
PROP_RECEIPT_AUTO = "org.openwhatsapp.yowsup.prop.cli.autoreceipt" | ||
PROP_RECEIPT_KEEPALIVE = "org.openwhatsapp.yowsup.prop.cli.keepalive" | ||
|
@@ -78,6 +75,7 @@ def jidToAlias(self, jid): | |
def setCredentials(self, username, password): | ||
self.getLayerInterface(YowAuthenticationProtocolLayer).setCredentials(username, password) | ||
|
||
return "%[email protected]" % username | ||
|
||
@EventCallback(EVENT_START) | ||
def onStart(self, layerEvent): | ||
|
@@ -343,13 +341,6 @@ def keys_get(self, jids): | |
entity = GetKeysIqProtocolEntity(jids) | ||
self.toLower(entity) | ||
|
||
@clicmd("Send prekeys") | ||
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)) | ||
|
||
@clicmd("Send init seq") | ||
def seq(self): | ||
priv = PrivacyListIqProtocolEntity() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.