pmarti / python-messaging

Pure python SMS/MMS encoder/decoder
Other
226 stars 114 forks source link

sms.class = 0 invalid syntax #47

Open jbdu94 opened 5 years ago

jbdu94 commented 5 years ago

Hi

I tried the example, but it doesn't work, it says "invalid syntax" Of course on my pc I used my phone number

from messaging.sms import SmsSubmit

sms = SmsSubmit("+44123231231", "hey how's it going?")
sms.class = 0
pdu = sms.to_pdu()[0]

print pdu.length, pdu.pdu

result: File "send_sms.py", line 6 sms.class = 0 ^ SyntaxError: invalid syntax