line-py icon indicating copy to clipboard operation
line-py copied to clipboard

'NoneType' object has no attribute 'lower'

Open Ronaldomata34 opened this issue 8 years ago • 6 comments

That's is my problem, my bot got text=None, with the example groupbot.

Ronaldomata34 avatar Mar 04 '18 16:03 Ronaldomata34

check that the contentType of a message is 0; all the other message types have msg.text=None, and will give you an error.

doodspav avatar Mar 04 '18 20:03 doodspav

if not(msg.text) and msg.contentType == 0: return

crash-override404 avatar Mar 07 '18 07:03 crash-override404

https://github.com/fadhiilrachman/line-py/blob/master/examples/groupbot.py line 39, always text.msg=None then I got that error: 'NoneType' object has no attribute 'lower', never is equal "hi". Thanks for try to help me

Ronaldomata34 avatar Mar 07 '18 23:03 Ronaldomata34

Settings > Privacy Management> Letter Sealing You can turn it off.

ghost avatar Mar 17 '18 23:03 ghost

Thanks @hinqta that was my problem

Ronaldomata34 avatar Mar 19 '18 18:03 Ronaldomata34

#5

lintangtimur avatar Jun 13 '18 07:06 lintangtimur