Skip to content

pywhatkit is not sending image to the users #352

@naman2020ldpes

Description

@naman2020ldpes

Description

pywhatkit is not sending images to the users its just typing the cation in the textbox and after some time (wait time) it becomes a draft
below is the command am using
" pywhatkit.sendwhats_image(user[1],"b.png"," occation ", 30, True, 15)"
am providing with sufficient time (done after seeing possible errors on stack overflow

To Reproduce

am writing the whole code

code reads csv file and creates new csv file at end it sends watsapp message

import csv
import pywhatkit

with open("contact.csv", 'r') as data_read: # open the file for reading
data_reader_object = csv.reader(data_read)
headers = next(data_reader_object)

# open the new file for writing
# to remove that we use newline='' 
with open("new_file_created.csv", 'w',newline='') as newfile:
    data_write_object = csv.writer(newfile)
    
    # make header or title for the file 
    data_write_object.writerow(headers+['message status'])
    
    # process the data and write to the new file
    for i in data_reader_object:
        ful = [i[0], "+91" + i[1], "not messaged"]
        data_write_object.writerow(ful)  # use writerow instead of writerows

with open("new_file_created.csv",'r') as data_read:
data_reader_object =csv.reader(data_read)
headers=next(data_reader_object) # so that we dont send watsapp msg on header
print(headers)
for user in data_reader_object:
print(user)
# the error is some where hear
pywhatkit.sendwhats_image(user[1],"b.png"," occation ", 30, True, 15)

Screenshots

Image

Version Information

  • OS: Windows 11
  • Browser: Google Chrome Version 132.0.6834.111
  • Python: Python 3.11.4
  • PyWhatKit: Version 5.3 (Stable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions