aydinnyunus / WhatsappBOT

Send messages to any person in any time how much you want.
423 stars 104 forks source link

Phone number format #8

Closed gatopadre closed 1 year ago

gatopadre commented 4 years ago

I try to use de app for chilean number with this format +569XXXXYYYY, the app told me ERROR: Please enter 12 digits for Phone number. Can you help me to solve that?... Thanks

aydinnyunus commented 4 years ago

Delete the "if len(str(phone_number)) != 12: m1 = tk.Label(master, text="ERROR : Please enter 12 digits for Phone Number.", fg="red", bg="black")"

parts in the WhatsappBot.py file. (line 100-103,284-285) and try again.

gatopadre commented 4 years ago

I already modified the if sentence to if len(str(phone_number)) > 11:, and also i change the message. Thanks a lot!

aydinnyunus commented 1 year ago

i fixed that with if len(str(phone_number)) < 9

aydinnyunus commented 1 year ago

no problem