Skip to content

Commit 68dec32

Browse files
author
Konstantin Podshumok
committed
Update readme
underline the fact that unicode is not supported in send_message call
1 parent c5b8f22 commit 68dec32

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,15 @@ for part in parts:
3333
pdu = client.send_message(
3434
source_addr_ton=smpplib.consts.SMPP_TON_INTL,
3535
#source_addr_npi=smpplib.consts.SMPP_NPI_ISDN,
36+
# Make sure it is a byte string, not unicode:
3637
source_addr='SENDERPHONENUM',
38+
3739
dest_addr_ton=smpplib.consts.SMPP_TON_INTL,
3840
#dest_addr_npi=smpplib.consts.SMPP_NPI_ISDN,
41+
# Make sure thease two params are byte strings, not unicode:
3942
destination_addr='PHONENUMBER',
4043
short_message=part,
44+
4145
data_coding=encoding_flag,
4246
esm_class=msg_type_flag,
4347
registered_delivery=True,

0 commit comments

Comments
 (0)