Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getRecenetMessages returns message "None" #69

Open
borisanger opened this issue Mar 31, 2016 · 6 comments
Open

getRecenetMessages returns message "None" #69

borisanger opened this issue Mar 31, 2016 · 6 comments

Comments

@borisanger
Copy link

Hello, I can't get text of message.
for example:

friend = client.contacts[14] 
messages = friend.getRecentMessages(count=1)
for msg in messages:
    print msg.text

return
None

and Echo bot example the same problem - message.text == None
here is output (debug mode),message.text is None!:
Operation(status=None, checkSum=None, param3=None, param2=None, param1='0', createdTime=1459391203879, message=Message(contentType=0, hasContent=False, text=None, id='4102847129444', to='ufb1d354a313a0843e2ffa15700abf757', contentPreview=None, location=None, deliveredTime=0, createdTime=1459391203874, _from='u63183d886f2793bbfe7305f5f9bd804a', contentMetadata={'e2eeVersion': '1'}, toType=0), reqSeq=0, type=26, revision=170606)

@ids93216
Copy link

ids93216 commented Apr 9, 2016

I have same problem too.

Some friend's message's contentMetadata is "{'e2eeVersion': '1'}", text will be "None", bot can receive operation but can't got message content.

Is there any idea to fix it?

@ids93216
Copy link

ids93216 commented Apr 9, 2016

Okay.. I found why

Ask your friend to go to settings > chat > Letter Sealing and turn off it, and it will be fine.

@ids93216
Copy link

I've tried this "Letter Sealing" function

You just go to your BOT's LINE on your phone
And turn Letter Sealing off, it will work

@borisanger
Copy link
Author

Thank you!

@anythingg
Copy link

anythingg commented Jul 5, 2017

i turned off letter sealing on the bot account and on the account i sent messages with but i still dont get messages, I only get []

i have been trying to get messages like this

client3.contacts
friend = client3.contacts[5]
messages = friend.getRecentMessages(10)
print messages

but i only get []

@ii64
Copy link

ii64 commented Jul 6, 2017

use fetchOperations, search for OperatioType = 26 = RECEIVE_MESSAGE
@anythingg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants