Skip to content

sms.class = 0 invalid syntax #47

@jbdu94

Description

@jbdu94

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions