Merge pull request #7 from enesahin/patch-1

Update main.py
This commit is contained in:
Dayo Ayeni 2021-08-14 12:30:52 -06:00 committed by GitHub
commit 87e799ac88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ class SMSCounter(object):
def truncate(cls, plaintext, limitsms): def truncate(cls, plaintext, limitsms):
count = cls.count(plaintext) count = cls.count(plaintext)
if count.mesages <= limitsms: if count.messages <= limitsms:
return plaintext return plaintext
if count.encoding == 'UTF16': if count.encoding == 'UTF16':