We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2618872 commit a342524Copy full SHA for a342524
1 file changed
whatsapp/__init__.py
@@ -614,7 +614,7 @@ def __init__(
614
self.rec = rec_type
615
616
try:
617
- self.to = self.instance.get_mobile(data)
+ self.to = to if to != "" else self.instance.get_mobile(data)
618
except:
619
self.to = to
620
@@ -776,7 +776,10 @@ def __init__(
776
self.type = "text"
777
self.data = data
778
779
- self.to = to
+ try:
780
781
+ except:
782
+ self.to = to
783
784
self.content = content if content != "" else self.instance.get_message(data)
785
0 commit comments