Couldn't go on the list with the library 'pywhatkit' like sending one message to two phone numbers on Vassapus?



  • He's working with one number, but as soon as I' a list of numbers, he says,

    "raise CountryCodeException." pywhatkit.exceptions.CountryCodeException: Country code missing from phone_no."

    There's a number one. ♪

    # pip install -U pywhatkit
    

    import pywhatkit

    number = "+972548336070"
    message = "The Matrix has you..."
    hours = 00
    minutes = 41

    pywhatkit.sendwhatmsg(number, message,hours , minutes)

    It doesn't work on a list of two numbers. ♪ ♪

    # pip install -U pywhatkit

    import pywhatkit

    number = ["+972548336070", "+972548336071"]

    for i in number:
    message = "The Matrix has you..."
    hours = 00
    minutes = 41
    pywhatkit.sendwhatmsg(number, message,hours , minutes)

    How do you feed the library?
    Thank you!

    If there's another solution to send one message to two phone numbers on Voxap, I'd be happy.



  • You have a wrong retreat. The task should be placed in the cycle. Also replace the variable in the challenge of the function. There should be i a number

    import pywhatkit
    

    number = ["+972548336070", "+972548336071"]

    for i in number:
    message = "The Matrix has you..."
    hours = 00
    minutes = 41
    pywhatkit.sendwhatmsg(i, message,hours , minutes)



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2