Multiple AutoApps How to send a message to a contact?

Discussion in 'AutoApps' started by distante, Jun 13, 2019.

  1. distante

    distante New Member

    Joined:
    Jan 23, 2016
    Messages:
    27
    Likes Received:
    0
    I have a task that captures my voice (Autovoice) with the format of "tell XYZ to SOMETHING". I was using touchless chat to send a message with SOMETHING to XYZ. Since it now doesn't work my task now queries XYZ in my contact list (Autocontacts) and now I want to send the message (Telegram, WhatsApp or SMS).

    I am not sure how can I achieve this last step. Is there a way?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You should try using AutoContacts Query 2.0 which can output Whatsapp uri for example, and the use the Browse URL action in Tasker with that :) Does that work?
     
  3. distante

    distante New Member

    Joined:
    Jan 23, 2016
    Messages:
    27
    Likes Received:
    0
    Hi Joao, thanks for your reply.

    For WhatsApp autocontacts works as expected. Sadly my direct family (wife and parents) we all use Telegram and I can not find any way to get info about Telegram with auto contacts. Or even send a message already knowing the contact number.

    This is what is kind of important to me for health related reasons. :(
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
  5. distante

    distante New Member

    Joined:
    Jan 23, 2016
    Messages:
    27
    Likes Received:
    0
    Thank you!!

    It works as expected. Just a question why %actelegram_conversation() returns something like ",content://..." I mean with an intiail comma. It isn't just suppose to be an string and not am array? I had to split it and use the second part to be able to open that chat.

    %acwhatsapp_conversation() does the same thing but it starts with two commas.

    Edit: Using just actelegram_conversation returns a empty string
     
    Last edited: Jun 24, 2019
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    That means that the first returned result has no telegram info :)
    Since it's an array you don't need to split it. Just access %actelegram_conversation(2) for example.

    Glad it works!
     
  7. distante

    distante New Member

    Joined:
    Jan 23, 2016
    Messages:
    27
    Likes Received:
    0
    That varies from contact to contact, don't? I will try to make a function task that gives the first usable value back.

    Edit: I did it and looks like it is working exactly as I need it. Thanks!
     
    Last edited: Jun 30, 2019
  8. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Glad it works!
     
  9. distante

    distante New Member

    Joined:
    Jan 23, 2016
    Messages:
    27
    Likes Received:
    0
    Hi Joao, I just want to comment that with the latest Autovoice update the Telegram fields aren't working. I can see Telegram in the plugin, but it returns always a blank variable.

    I have reinstalled the package that you posted here and it works.
     
  10. roizcorp

    roizcorp New Member

    Joined:
    Aug 21, 2016
    Messages:
    19
    Likes Received:
    0
    with WhatsApp i always faced the fact that at the end you need to press the "send" button, browse url will take you to the conversation, put your text in and then get some magic to send it
     

Share This Page