axolotltestapp's People
axolotltestapp's Issues
SendMessageBroadcastLocation
Hi,
thanks for you work. I try to add the function
public void SendMessageBroadcastLocation(string[] to, string name, double lat, double lon) { this.SendMessageBroadcast(to, new FMessage(string.Empty, true) { location_details = name, media_wa_type = FMessage.Type.Location, latitude = lat, longitude = lon }); }
But i don't know how to change the function "SendMessageBroadcast"
public void SendMessageBroadcast(string[] to, FMessage message)
{
if (to != null && to.Length > 0 && message != null && !string.IsNullOrEmpty(message.data))
{
ProtocolTreeNode child;
if (message.media_wa_type == FMessage.Type.Undefined)
{
//text broadcast
child = new ProtocolTreeNode("body", null, null, WhatsApp.SYSEncoding.GetBytes(message.data));
}
else
{
throw new NotImplementedException();
}
List<ProtocolTreeNode> toNodes = new List<ProtocolTreeNode>();
foreach (string target in to)
{
toNodes.Add(new ProtocolTreeNode("to", new KeyValue[] { new KeyValue("jid", WhatsAppApi.WhatsApp.GetJID(target)) }));
}
ProtocolTreeNode broadcastNode = new ProtocolTreeNode("broadcast", null, toNodes);
Int32 unixTimestamp = (Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds;
ProtocolTreeNode messageNode = new ProtocolTreeNode("message", new KeyValue[] {
new KeyValue("to", unixTimestamp.ToString() + "@broadcast"),
new KeyValue("type", message.media_wa_type == FMessage.Type.Undefined?"text":"media"),
new KeyValue("id", message.identifier_key.id)
}, new ProtocolTreeNode[] {
broadcastNode,
child
});
this.SendNode(messageNode);
}
}
Maybe someone can help me :)
Thanks
Error can'n run it
Cannot run in windows server 2008
I had tried to run the program in windows server 2008 after installing VS 2015 64-bit and 32-bit C++ redistributable..... but encountered the following errors:
************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'mycurve25519.dll' or one of its dependencies. The specified module could not be found.
File name: 'mycurve25519.dll'
Error on logon
Hi,
I'm getting two consecutive errors each time logging in
The first is:
Whatsapp Error
ID: 1457608166-3
From: s.whatsapp.net
Code: 501
Message Text: feature-not-implemented
Followed by:
Whatsapp Error
ID: 1457608166-2
From: [my number]@s.whatsapp.net
Code: 404
Message Text: item-not-found
it does not seems to cause any issues as the client stays online and can send/receive messages, but I was just wondering if you know what is it related to
WA 2.0
Hi,
I've WA 2.0 php source codes. Can you help me convert them to .net?
stream error after receiving a ping from WhatsApp then a complete disconnection
Presence: [email protected], is: available
DEBUG:
rx <presence from="[email protected]" type="unavailable" last="1457435237"></presence>
DEBUG:
rx <presence from="[email protected]" type="unavailable" last="1457435237"></presence>
Presence: [email protected], is: unavailable
DEBUG:
rx <presence from="[email protected]"></presence>
DEBUG:
rx <presence from="[email protected]"></presence>
Presence: [email protected], is: available
DEBUG:
rx <presence from="[email protected]" type="unavailable" last="1457435347"></presence>
DEBUG:
rx <presence from="[email protected]" type="unavailable" last="1457435347"></presence>
Presence: [email protected], is: unavailable
DEBUG:
rx <presence from="[email protected]"></presence>
DEBUG:
rx <presence from="[email protected]"></presence>
Presence: [email protected], is: available
DEBUG:
rx <presence from="[email protected]" type="unavailable" last="1457435617"></presence>
DEBUG:
rx <presence from="[email protected]" type="unavailable" last="1457435617"></presence>
Presence: [email protected], is: unavailable
DEBUG:
rx <iq from="s.whatsapp.net" type="get" id="1457435740" xmlns="urn:xmpp:ping"></iq>
DEBUG:
rx <iq from="s.whatsapp.net" type="get" id="1457435740" xmlns="urn:xmpp:ping"></iq>
DEBUG:
rx <stream:error>
rx <ping id="1457435740"></ping>
rx </stream:error>
DEBUG:
rx <stream:error>
rx <ping id="1457435740"></ping>
rx </stream:error>
Connection LOST
CALLING WA CONNECT FROM CHECK FUNCTION
Connection LOST
Removed all delegates
FINISHED COLLECTING GARBAGE
Calling ConnectWA!
Connection LOST
Connect Success....
Login success. Next password:
b6JH6j9XXXXXXXXP1BS8rxXY+JfTJc=
Finished Connecting Method -----
Connection Successful
DEBUG:
rx <ib from="s.whatsapp.net">
rx <offline count="0"></offline>
rx </ib>
DEBUG:
rx <ib from="s.whatsapp.net">
rx <offline count="0"></offline>
rx </ib>
DEBUG:
rx <presence from="[email protected]"></presence>
DEBUG:
rx <presence from="[email protected]"></presence>
Presence: [email protected], is: available
DEBUG:
rx <presence from="[email protected]" type="unavailable" last="1457435617"></presence>
DEBUG:
rx <presence from="[email protected]" type="unavailable" last="1457435617"></presence>
Presence: [email protected], is: unavailable
DEBUG:
rx <iq from="s.whatsapp.net" type="error" id="1457435771-149">
rx <error code="501" text="feature-not-implemented"></error>
rx </iq>
DEBUG:
rx <iq from="s.whatsapp.net" type="error" id="1457435771-149">
rx <error code="501" text="feature-not-implemented"></error>
rx </iq>
DEBUG:
rx <iq from="[email protected]" type="error" id="1457435771-148">
rx <error code="404" text="item-not-found"></error>
rx </iq>
DEBUG:
rx <iq from="[email protected]" type="error" id="1457435771-148">
rx <error code="404" text="item-not-found"></error>
rx </iq>
DEBUG:
rx <iq from="s.whatsapp.net" type="result" id="1457435771-150"></iq>
DEBUG:
rx <iq from="s.whatsapp.net" type="result" id="1457435771-150"></iq>
DEBUG:
rx <presence from="[email protected]"></presence>
DEBUG:
rx <presence from="[email protected]"></presence>
Presence: [email protected], is: available
Change Sender & Traget & Password
when i try to change the The Sender & Target its not changed why ?
ex . wa = new WhatsApp("966xxxxxxxxx", "xxxxx", nickname, true);
Message received with extra characters
I had received message with extra characters.... the message should be "Ee123 7 6009 10-120"...instead it received in followings:
"\n\u0013Ee123 7 6009 10-120\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c\u001c"
"\n\u0013Ee123 7 6009 10-120ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg"
"\n\u0013Ee123 7 6009 10-120�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������"
"\n\u0010Ee123 7 6009 10-120\v\v\v\v\v\v\v\v\v\v\v"
"\n\u0013Ee123 7 6009 10-120BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB"
"\n\u0013Ee123 7 6009 10-12000000000000000000000000000000000000000000000000"
"\n\u0013Ee123 7 6009 10-12000000000000000000000000000000000"
How can i extract the correct message? I am able to extract the first 5 messages using regex but not the last 2 messages.
error please help me
when I run I get error that mycurve25519.dll or one of its dependencies missing
im install Visual C++ Redistributable for Visual Studio 2015 x86 & x64 but the same problem
please any help
AxolotlTestApp csharp api get last seen after 5 minutes
Thanks for help. Now we are able to received the decrypt message and it is working fine.
Found the some observation while running this version.
5 minutes after start Application WA no show last seen as a result send and received the message are stop.three four attempt it gives auth exception.
it may cause the block the number so i stop running this app.
can you suggest how to run continuously this app. or right/exact procedure to received new message from this app without any issue.
unable to complie mylibaxolotl
Hi @kwailo888
I compiled mycurve25519 and got the dll to come out. After that I tried to compile mylibaxolotl and got many many errors, I am pretty sure there is something obvious I am missing!
I have attached a screen shot for reference.
Info
@darrenbehnke @GKG4 this is an updated package .. sorry uploaded an older version. this should work as expected
dll problem in web server
Hi,
i put the project in web server to test is that working over web, but when i created asp.net and try to login i got the error "Could not load file or assembly 'mycurve25519.DLL' or one of its dependencies. The specified module could not be found." but i use vs2013 in my local and it works fine.
i have put both 32 bit and 64 bit dll and tried noting worked. what could be the problem any idea ?
number blocked over time
Help Me Please...
I'm doing a Windows Service that what it does is basically read if there are messages to send, if any sends them, on the other hand receive messages from different users after received keep them in a database, the point is that this windows service I need this connected 24/7, I worked for several days, using the code AxolotlTestApp, but now when I want to login login tells me not-authorized and verified the number is blocked, just to make it clear I'm not used to spamming is an internal chat.
How could I keep my active service 24/7 without blocking me the number?
Real help kwailo888
SendMessageReceived and SendAvailableForChat
At first, i added the function SendMessageBroadcastLocation.
But i have some questions for the login:
Every time after the logging procedure, the client was available.
so i create the WhatsApp with the value "hidden = true", but it was still available
public WhatsApp(string phoneNum, string imei, string nick, bool debug = false, bool hidden = false);
The logging procedure is sending
this.SendAvailableForChat(this.name, this.hidden);
public void SendAvailableForChat(string nickName = null, bool isHidden = false)
{
var node = new ProtocolTreeNode("presence", new[] { new KeyValue("name", (!String.IsNullOrEmpty(nickName) ? nickName : this.name)) });
this.SendNode(node);
}
But the value "isHidden" is never checked?!
Is it a issue or correct?
Every time the API receives a messages, it is immediately marked as read?!
WhatsSendBase.cs:378
this.sendMessageReceived(node);
WhatsSendBase.cs:608
protected void sendMessageReceived(ProtocolTreeNode msg, string type = "read")
It should be checked whether the client is active or inactive. I'm right?
Index Out of Bound exception on decryptMessage method
Hi @kwailo888 , I'm getting an "Index Out of Bound" exception on decryptMessage method. The problem is in the line
ECPublicKey publicKey = Curve.decodePoint(this.structure.PublicKey.ToByteArray(), 0);
because this.structure.PublicKey.ToByteArray() is = byte[0]
It seems that for some reason I was not able to store the public (and the private) key. Any hint that you could give me?
Thanks in advance!
Unable to decrypt message anymore
fireOnGetMessage event not fired
Hi,
Sometimes the fireOnGetMessage doen't get fired. I debugged the code to investigate.
Its having problem in following function
//BRIAN MADE PUBLIC FIXME:
public void handleMessage(ProtocolTreeNode node, bool autoReceipt)
the following line returns null
var contentNode = node.GetChild("body") ?? null; // node.GetChild("enc");
and we don't receive the message.
Can you investigate?
Kunal
uanble to download image
image is decrypted
myCurve dll problem
Hi,
As youu suggested, I tried to build myCurve.dll in 32/64 bits. It compiles in 32 bit target but, when I tried for 64 bits, it throws build error
Severity Code Description Project File Line Suppression State
Error C1083 Cannot open include file: 'pch.h': No such file or directory mycurve25519
Any idea?
Kunal
wa_OnGetMessageImage no fired
I have problems with the application wa_OnGetMessageImage event does not work, making debugging the application, in the specific case I get images in the line: var contentNode = node.GetChild ("body") ?? null; // Node.GetChild ("enc"); It is returning null, as I can fix the problem.
Help!!
Problems creating account
Hi @kwailo888, I know this is not your issue, but the truth has supported us in monitoring each project and maybe we you can help, before I asked you a series of questions in relation to the numbers lock and proceeded to work on the code to fix it, if you remember you had mentioned that my numbers were blocked and so my service will not run, now I want to try the service try to get a password to WART tool however it gives me an error: "bad_token" not if you can help us something to continue the project. Now I can not get a password
message not decrypted properly
Hi,
Lately, I don't get the messages decrypted properly.
I see some junk characters along with the message.
Please guide me what went wrong. I recently updated to "2.13.440" version
Kunal
Decoding issues
Hi,
It seems like there are some issues with the decoding
- for some reason it seems like unnecessary characters are added to the message string, so when I send 'Hi' what I get is "�Hi�������������������������������������������������������������������������������������������������������������������������������������������"
- I can't get messages sent in a whatsapp group. I don't get an ack for it, and afterwards I get 'stream:error'
Any ideas?
Database for Axolotl
Do you have a working example on sql lite where we can create the database in the same path where the program is running and use the same functions you added but instead they are saved everytime the program runs.
I am just asking because this is the last thing that needs to be done in my case!
FormatException when running program
I had compiled all the project successfully but encountered error when running the program.
An unhandled exception of type 'System.FormatException' occurred in mscorlib.dll
Additional information: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
could not load mycurve dll
Hi,
My code works fine on my local where I have VS 2015 installed and the latest c++ runtime is installed.
Bu when I host it to Production environment, I receive following error
Could not load file or assembly 'mycurve25519.dll' or one of its dependencies. The specified module could not be found.
I tried installing VC++ runtime on the server but no luck.
Please guide me which package is required to load the MyCurve dll. I can't reproduce the error on my local machine.
Regards
Kunal
wa.PollMessages() not working in asp.net
Hi,
i just tried to write the same functionality in asp.net from WhatsTest (Program.cs) when the execution comes to wa.PollMessages(); and getting freezed.
any idea on this ?
Can't Decrypt Messages
@kwailo888 for the life of me, I can not decrypt messages while messages sent from my end are encrypted
I am getting all the keys but can't decrypt incoming messages
Whats is that one thing to do to get this working like it should?
i See issue with imcoming Message
I see the issue with Incoming Message from Windows Phone and Iphone 6
After decryption there are many extra bytes, anyone out there with same issue.
@kwailo888 did you tested with these phones.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.