Skip to content

incorrect work of sendwhatmsg_to_group_instantly method #345

@vetsinen

Description

@vetsinen

Description

A Clear and Concise Description of the Bug
sendwhatmsg_to_group_instantly incorrectly works with non ascii-symbols

To Reproduce

Steps to Reproduce the Bug
import pywhatkit

if name == 'main':
phone = '+380953xxxxx'
message = "Hello, ¡hola!,\n こんにちは, Hyvää päivää? "# "меренгетека \n бачатека "
pywhatkit.sendwhatmsg_instantly(phone, message, tab_close=True)
pywhatkit.sendwhatmsg_to_group_instantly("Kho3QNCldFnGq0Az4i5dHV", message, tab_close=True)

results:

in private message:
Hello, ¡hola!,
こんにちは, Hyvää päivää?
in group:
Hello, hola!,
, Hyv piv?

If applicable, add Screenshots to help explain your Problem

Version Information

  • OS: Ubuntu Linux 24.04
  • Browser: Google Chrome
  • Python: 3.12
  • PyWhatKit: 5.2

You can Check the PyWhatKit Version using

print(pywhatkit.__VERSION__)

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