Comments (2)
You are looking for the difference between two repositories? Just pull both and start your favourite diff tool. And please note that the difference may change daily, so keep pulling/diffing. :)
from yowsup.
@Marcovus Some comments:
In your code:
def sendMsg(self, msg, num):
outgoingMessage = TextMessageProtocolEntity(content.encode("utf-8") if sys.version_info >= (3,0) else content, to = self.aliasToJid(number))
logger.info("Sending Message {0} to {1}".format(msg, num))
self.toLower(outgoingMessage)
You have mixed msg, num variables with content and number. Moreover, you are applying "format" with str and unicode, use in logger.info unicode. These are bugs of your code. Fix it with:
def sendMsg(self, msg, num):
outgoingMessage = TextMessageProtocolEntity(msg.encode("utf-8") if sys.version_info >= (3,0) else content, to = self.aliasToJid(num))
logger.info(u"Sending Message {0} to {1}".format(msg, num)) #### <--- See the u
self.toLower(outgoingMessage)
- You are getting encryption error in incoming messages. Send a message to the recipint from yowsup-cli or from your app and it will be fixed. And remember: DO NOT DELETE ENCRYPTION DATABASE or you will get this error again.
In order to compare both codes, download and use diff, meld... or just configure git and use git diff (you can find many solutions googling).
from yowsup.
Related Issues (20)
- virtual phone doesn't receiving SMS code
- Not work decrypt image any more HOT 7
- general: Disconnected: Connection Closed
- ImportError: cannot import name ProtocolTreeNode
- old version
- def decrypt(self, encimg, refkey): HOT 2
- [connected]:ERROR:yowsup.demos.cli.layer:Request upload for file /home/pi/Image.jpg for [email protected] failed
- How i can download media received from yowsup ?
- hi cannot login
- Couldn't receive a media, please help HOT 7
- Error when receiving a large txt message HOT 1
- Audio from groups OK, but not other media types. HOT 5
- enc images in echoclient HOT 2
- old_version
- common/tools.py: inconsistent use of tabs and spaces in indentation HOT 1
- Connection Closed. for android env. media cannot decrypt for s40 HOT 1
- demos not working HOT 8
- new confidentiality policy
- All the numbers used are being blocked HOT 1
- BAD_TOKEN with ENV_S40 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yowsup.