FORUMS

[GUIDE] Send Whatsapp messages using Tasker

359 posts
Thanks Meter: 79
 
Post Reply Email Thread
28th February 2014, 06:11 AM |#11  
jeswinjv's Avatar
Senior Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by UnitedOceanic

@hotsync100

i really like the new method, thank you!! have to try this!

@jeswinjv

if i understand it correctly it works like this:

whatsapp saves messages in to a database file, with these tasker tasks, we write directly into the database with a shell command and the sqlite binary (in this case the one that comes with titanium backup, many other apps have the same binary included). the tasker task kills whatsapp so it will restart and reload the database, it will find a new entry and send the new message.

ThanQ....reaLy nw geTit...:thumbup:





Quote:
Originally Posted by hotsync100

Exactly!

Sent from my Nexus 7 using Tapatalk



via Tapatalk
4th March 2014, 10:17 PM |#12  
Member
Thanks Meter: 14
 
More
I have like a number of contacts in my WhatsApp.

Can someone tell me how do I automate the process of messaging each & every contact using Tasker or WhatsTasker?
The Following User Says Thank You to stirredo For This Useful Post: [ View ] Gift stirredo Ad-Free
7th March 2014, 02:57 PM |#13  
Senior Member
Thanks Meter: 5
 
More
Quote:
Originally Posted by stirredo

I have like a number of contacts in my WhatsApp.

Can someone tell me how do I automate the process of messaging each & every contact using Tasker or WhatsTasker?


Same here. I want a guide. Please help us.
7th March 2014, 04:02 PM |#14  
Inactive Recognized Developer
Thanks Meter: 883
 
Donate to Me
More
seems to be not working :(
Does yowsup still work?
When trying to reg, I get this :
Quote:

./yowsup-cli --requestcode sms --config yowsup-cli.config
status: fail
reason: old_version

Any help appreciated.
10th March 2014, 09:49 PM |#15  
OP Senior Member
Flag Caracas
Thanks Meter: 79
 
Donate to Me
More
Quote:
Originally Posted by racht

Does yowsup still work?
When trying to reg, I get this :


Any help appreciated.

Try to get the code using this page: https://coderus.openrepos.net/whitesoft/whatsapp_sms
16th March 2014, 03:10 PM |#16  
Member
Thanks Meter: 3
 
More
Quote:
Originally Posted by hotsync100

I'm using a new method to send Whatsapp messages with tasker ..

You only need:
1) ROOT
2) Sqlite
3) Tasker

Tho send a Whatsapp message, you have to perform this Task with 2 parameters:

1) Phone . Formatted like this :
58[email protected] (single contact)
58[email protected] (group chat)

2) Text to send.

Note: Previosuly you need to fill the variable %Sqlite3 with the full path of sqlite ..
Example if you use Titanium Backup: /data/data/com.keramidas.TitaniumBackup/files/sqlite3

Attachment 2603748

Code:
Send Whatsapp (192)
A1: Variable Set [ Name:%phone To:%par1 Do Maths:eek:ff Append:eek:ff ] 
A2: Variable Set [ Name:%data To:%par2 Do Maths:eek:ff Append:eek:ff ] 
A3: Variable Add [ Name:%Cont Value:1 Wrap Around:8 ] 
A4: Variable Search Replace [ Variable:%phone Search:* Ignore Case:eek:ff Multi-Line:eek:ff One Match Only:eek:ff Store Matches In: Replace Matches:eek:n Replace With: ] 
A5: Variable Set [ Name:%key_id To:%TIMES-%Cont Do Maths:eek:ff Append:eek:ff ] 
A6: Run Shell [ Command:%Sqlite3 /data/data/com.whatsapp/databases/msgstore.db "INSERT INTO messages (key_remote_jid, key_from_me, key_id,status, needs_push, data, timestamp, media_url, media_mime_type, media_wa_type, media_size, media_name, latitude, longitude, thumb_image, remote_resource, received_timestamp, send_timestamp, receipt_server_timestamp, receipt_device_timestamp, raw_data, media_hash, recipient_count, media_duration, origin) VALUES ('%phone',1,'%key_id',0,0,'%data',%TIMEMS,'','','0',0,'',0.0,0.0,' ','',%TIMEMS,-1,-1,-1,0,'',0,0,0);
update chat_list set message_table_id = (select max(messages._id) from messages) where chat_list.key_remote_jid = '%phone' ; " Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: Continue Task After Error:eek:n ] 
A7: Kill App [ App:WhatsApp Use Root:eek:n Continue Task After Error:eek:n ]

Thanks man But I need you to explain something to me

my phone is rooted and I I installed SQLite manager

I opend the "msgstore.db" from the path and I got the specific name of the group and contact

BUT I DON"T KNOW WHERE TO ASSIGN IT

as far what I understand I should assign "%phone" to the name of contact as or group (as how it saved in database)
and assign "%data" to my message .

if that's not correct then how to assign the value of "%par1" and "%par2"?

I followed what I understand from the code that you provided but it doesn't work


Can you send screen shoot for each "Action" please?

I attached the XML details for my task (remove '.txt')
can you see what is missing?

also this is as description:

Code:
Send (3)
A1: Variable Set [ Name:%phone To:[Phone-Number]@s.whatsapp.net Do Maths:eek:ff Append:eek:ff ] 
A2: Variable Set [ Name:%data To:Test Tasker  Do Maths:eek:ff Append:eek:ff ] 
A3: Variable Add [ Name:%Cont Value:1 Wrap Around:8 ] 
A4: Variable Search Replace [ Variable:%phone Search:* Ignore Case:eek:ff Multi-Line:eek:ff One Match Only:eek:ff Store Matches In: Replace Matches:eek:n Replace With: ] 
A5: Variable Set [ Name:%key_id To:%TIMES-%Cont Do Maths:eek:ff Append:eek:ff ] 
A6: Run Shell [ Command:%Sqlite /data/data/com.whatsapp/databases/msgstore.db "INSERT INTO messages (key_remote_jid, key_from_me, key_id,status, needs_push, data, timestamp, media_url, media_mime_type, media_wa_type, media_size, media_name, latitude, longitude, thumb_image, remote_resource, received_timestamp, send_timestamp, receipt_server_timestamp, receipt_device_timestamp, raw_data, media_hash, recipient_count, media_duration, origin) VALUES ('%phone',1,'%key_id',0,0,'%data',%TIMEMS,'','','0 ',0,'',0.0,0.0,' ','',%TIMEMS,-1,-1,-1,0,'',0,0,0);
update chat_list set message_table_id = (select max(messages._id) from messages) where chat_list.key_remote_jid = '%phone' ; " Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ] 
A7: Kill App [ App:WhatsApp+ Use Root:eek:n ]


thank you
Attached Files
File Type: txt Send.tsk.xml.txt - [Click for QR Code] (2.3 KB, 1086 views)
18th March 2014, 06:12 PM |#17  
OP Senior Member
Flag Caracas
Thanks Meter: 79
 
Donate to Me
More
Quote:
Originally Posted by ahmadssb

Thanks man But I need you to explain something to me

You could do it on several ways... For example you could create a new task like this:

Click image for larger version

Name:	Screenshot_2014-03-18-12-30-08.png
Views:	2978
Size:	201.9 KB
ID:	2637265

And create a Perform Task Action with the parameters:

Click image for larger version

Name:	Screenshot_2014-03-18-12-23-41.jpg
Views:	2866
Size:	115.6 KB
ID:	2637268

Remember to fill the variable %Sqlite3 with the full path of sqlite3.. You do not see it on my tasks, because this is a Global variable that set in a previous task.. In my case, I first read the whatsapp message and after I send an auto answer..
The Following User Says Thank You to hotsync100 For This Useful Post: [ View ] Gift hotsync100 Ad-Free
18th March 2014, 07:57 PM |#18  
Member
Thanks Meter: 3
 
More
thank you I have test it with other way

Do you know how to send a broadcast message in whatsapp using Tasker

I have looked at 'message' table in whatsapp and after i test a couple of broadcasts to different people I found this:
First it sends a message to each one with in the broadcast
then it will create this row

key_remote_jid = [email protected]
key_id = 1395147286-4
remote_resource = [email protected],9XXXXXXX...whatsap p.net // List of each contact number

And all rows (Contacts and ) share the same value of 'status' column

Is there a way to implement faster or I should make one task that includes several actions each one has a query to send to one number
then last action has a name formatted like this [email protected]

and all queries shares the same value of 'status' column

then start the task to perform all Actions in sequence

Is there better way to do that?

BTW it doesn't work if send to [email protected]
6th August 2014, 09:51 AM |#19  
Senior Member
Thanks Meter: 21
 
More
Quote:
Originally Posted by kemikelx

Anyone considering Whatstasker.

https://play.google.com/store/apps/d...ev.whatstasker

Sent from depth of the earth

I'm trying it but can't seem to find a good manual on how to configure it.
12th August 2014, 02:43 AM |#20  
Member
Thanks Meter: 9
 
More
Quote:
Originally Posted by an0therus3r

I'm trying it but can't seem to find a good manual on how to configure it.

It does take some time to get used to it. Do post your questions here.
10th September 2015, 10:22 AM |#21  
Senior Member
Flag Manchester
Thanks Meter: 43
 
More
Is there a way to set this up on a phone, already with whatsapp registered?

Also, can you explain what you mean by

"Tho send a Whatsapp message, you have to perform this Task with 2 parameters:

1) Phone . Formatted like this :
[email protected] (single contact)
[email protected] (group chat)

"
Post Reply Subscribe to Thread

Tags
python, sqlite, tasker, whatsapp, yowsup

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes