Solved How to Mark a chat as read (telegram)

Discussion in 'Touchless Chat' started by distante, Jan 28, 2016.

  1. distante

    distante New Member

    Joined:
    Jan 23, 2016
    Messages:
    27
    Likes Received:
    0
    I'm setting a couple of Tasker's profile to be able to hear an send messages from Telegram App when I'm driving and can't Touch my phone.

    The part to redact a new message is ready, no quite as I wanted but it works.

    Now I'm working in the arrival part. My goal is to do hear the message and do tree things depending on what I say: Response, Mark as read, Ignore.

    If I say Response, I will say my message and send it (this part is done).
    If I say Ignore, then It will do nothing.
    If I say Mark as Read, it muss mark the message so if another message arrives, AutoChat don't read the two messages in a row. This is what I don't know how to do.

    If I just open the app (in this case telegram) how can I back exactly to where I was? (normally I use Wazze or Here Maps)

    Extra: I have AutoInput, AutoVoice and Touchless Chat.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

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

    distante New Member

    Joined:
    Jan 23, 2016
    Messages:
    27
    Likes Received:
    0
    Great, this go back from telegram to the other app!!!

    Just the problem that I have is that sometimes Telegram shows the contact window, and others (if I was chatting with somebody) the contact chat window. So sometimes the correct chat doesn't get marked or sometimes nothing gets marked.
    I thought about doing a clic with AutoInput but that will no work when the chat window is showed, another thing will be clicked.
    I tried do a Touchless Chat empty send message action but since I don't use confirmation this doesn't do anything.

    Is There another way to open telegram with a specific contact with Touchless chat?

    Thanks
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You can use AutoNotification to click the Telegram notification :) Hope this helps
     
  5. distante

    distante New Member

    Joined:
    Jan 23, 2016
    Messages:
    27
    Likes Received:
    0
    I don't think it will work because when more than one contact send messages, telegram will open the contact list.

    Can AutoInput with UI "know" what screen is open?
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Yes, it can somewhat :) Check out the AutoInput UI Query action.
     
  7. distante

    distante New Member

    Joined:
    Jan 23, 2016
    Messages:
    27
    Likes Received:
    0
    I manage to check in what screen Telegram is using tasker Timeout option in a UI action.

    But when I try so search for my contact name (text) AutoInput can't find it, if I try to use easy setup it says: "that area isn't clickable"

    Any contact from the contact page seems to be clicklable :(
     
  8. distante

    distante New Member

    Joined:
    Jan 23, 2016
    Messages:
    27
    Likes Received:
    0
    The user rgawenda in Reddit help me. The solution is open an URL with:
    tg://resolve?domain=username
     

Share This Page