Jun-21-2022, 11:08 AM
But i get error like this
Error:Traceback (most recent call last):
File "C:\Users\sisya\PycharmProjects\Whatsapppython\main.py", line 9, in <module>
with open("footer.txt") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'footer.txt'
(Jun-21-2022, 10:49 AM)snippsat Wrote: If pywhatkit don't take a file object you can do it like this.
import pywhatkit with open("footer.txt") as f: pywhatkit.sendwhats_image("E9wnucCUpBpD1aizIUyLv6", "E:\\PythonFiles\\Music.jpg", f.read(), 10) pywhatkit.sendwhatmsg_to_group("E9wnucCUpBpD1aizIUyLv6", "Test", 13, 3, 15, True, 5)