pishangujeniya / instagram-helper

Instagram Scripts for Bulk Unsending Direct Messages
https://pishangujeniya.github.io/instagram-helper/
MIT License
220 stars 51 forks source link

Unusual Thread ID - It's shorter than usual #95

Open idkasd1 opened 1 year ago

idkasd1 commented 1 year ago

Im getting Error and cant load the script even though im using this Disable Content-Security-Policy Extension.

image

idkasd1 commented 1 year ago

oh it shows to everyone , and the script working normally so what's the problem now ?

idkasd1 commented 1 year ago

im testing the script everyday dude im tired , i cant fix it , and i need this script hardly

pishangujeniya commented 1 year ago

@idkasd1 please follow the readme properly.

Script is working fine.

pishangujeniya commented 1 year ago

@idkasd1 you can ignore the first error.

idkasd1 commented 1 year ago

I read it more than time here's what I do

  1. open .vbs and select the Temp Folder that i just made
  2. open shortcut chrome add the tool
  3. open instagram.com and turn on the tool turn to pink
  4. login
  5. go to random chat
  6. F12 then console
  7. Refresh Site
  8. put the script
  9. Enter This is what i do Is there anything wrong ?
pishangujeniya commented 1 year ago

@idkasd1 status code is 404, so error saying that failed to find the Thread ID.

Can you make sure that the thread ID which you entering in the prompt is correct, as per the screenshot in the README?

idkasd1 commented 1 year ago

I typed it perfectly image

pishangujeniya commented 1 year ago

Seems Like you are only getting weird issues.

Once you get this error, go to Network tab and find the 404 status code Request and click on it. Send the screenshot let's see what is the request made by the script in your case.

idkasd1 commented 1 year ago

image image

pishangujeniya commented 1 year ago

@idkasd1 seems like your thread ID is incorrect.

You are passing a wrong value.

Usually thread IDs are longer than this.

Please check your chat page URL, at the end there will be thread ID.

idkasd1 commented 1 year ago

yea idk what's wrong why my id is short even if i refreshed the site

pishangujeniya commented 1 year ago

Can you scroll up your chat, and check the network tab, is there any request going with link having word cursor?

Can you provide screenshot and details of it?

idkasd1 commented 1 year ago

image

idkasd1 commented 1 year ago

When I scroll up the size of the file is increasing

image

pishangujeniya commented 1 year ago

Sorry, but unless i get this same scenario i can't fix it.

Sorry this script won't be useful in this chat thread.

idkasd1 commented 1 year ago

yea you r right , first time i used the tool it was long chat thread idk what happened to it to been short like this anyway i will close the issue Thanks for help man <33

pishangujeniya commented 1 year ago

@idkasd1 I need to find a solution to your problem, as there has been an another user also faced the problem.

This weekend will be working on this to find the solution and release a new script version that works with latest updates.

idkasd1 commented 1 year ago

@pishangujeniya did u find a solution >?

pishangujeniya commented 1 year ago

@idkasd1 no solution yet, because I am getting longer thread id instead like yours.

Sorry, still not able to fingure out, how you are getting such short thread id.

idkasd1 commented 1 year ago

how you are getting such short thread id.

idk , first time i use the tool my id thread was long after some days it changed to short one without no reason , its weird i know :)

idkasd1 commented 1 year ago

I need this tool so much , If u know another tool or something tell me please thx tho

pishangujeniya commented 1 year ago

@idkasd1 keep eye on network tab list while you are scroll up in the chat to load messages.

Every time you scroll you will see a request to get messages from cursor will be sent by instagram, can you please provide the screenshot of those request.

idkasd1 commented 1 year ago

Every time i scroll up the kb increased and make more requests image

pishangujeniya commented 1 year ago

When you click on any of the request, i want to see the right side part of it.

idkasd1 commented 1 year ago

Here's some idk which one u want image image image image

pishangujeniya commented 1 year ago

Not these,

See in the network tab, there will be a filter above these requests with the tiltes such as All, Xhr, Images, JS WS, fonts, etc, and many others.

Just click on XHR, and then go scroll up your chat a lot above. Everytime when you scroll up, the instagram will make a XHR request with the chat thread ID. Using this what i am trying to figure out is which thread ID instagram itself is using the long one or the short one.

I want to know the request made when you scroll a lot above, while the network tab is open. I guess it should make request with some word such as cursor.

idkasd1 commented 1 year ago

yea i got ittt bro Its a long one , when i copy and paste it , it changed auto to hash same as first i enter any chat and do the same and i will copy the id and retry to use the tool

idkasd1 commented 1 year ago

Look , I got this link from requests this is the only one which shows the id if u can see it 17843691127146670:1684010949 they put the : to make the number visible 17SUf7F65grAa2uj2Kj8ng6rLWNah4Y5x6 see this is what happen if i remove the : I tried to use it in the tool but nothing work idk what to do image

pishangujeniya commented 1 year ago

Bro, I got it, this happened with me when i was even typing it in notepad.

Its I guess the bug of copy paste.

Try to type each character one by one in the box which asks for the thread ID.

When you open the chat the url at the top will have the thread ID which will be longer, but when you copy and then paste it in the box it becomes different and shorter.

Just type the ID from the url by seeing and then typing each letter character manually in the box which asks for the thread ID of Instagram Helper. I hope it will work.

idkasd1 commented 1 year ago

yea i know i know i just telling u that to prove that is the real long thread ID I typed it yesterday and the script still not working

pishangujeniya commented 1 year ago

Can you try on some another computer?

itschotu commented 1 year ago

Hello, i have the same problem too, it doesn't work for me either. Same error.

itschotu commented 1 year ago

image

itschotu commented 1 year ago

the thread iD is short, there is no long thread ID.

Preppyprep commented 1 year ago

@pishangujeniya I want it to be on this device. I don't want to try it on other device. Can you just help us rather than leave this post as it is.

UmarBegg commented 1 year ago

@pishangujeniya I'm also having this issue, happy zoom call and share screen to show you if you need.

idkasd1 commented 1 year ago

alright we are a lot guys :))) I hope we can find a soultion

pishangujeniya commented 1 year ago

@UmarBegg Let's connect and schedule a meeting with me. https://calendly.com/pishangujeniya/

miloscu commented 1 year ago

@pishangujeniya chat now works over websockets. It will open a connection like wss://edge-chat.instagram.com/chat?sid=8553407468011519&cid=aca2bbac-01f8-4a31-b4e0-185c2330a4de

and the thread IDs and message IDs will be buried somewhere. look for "big" socket messages

example: { "request_id": null, "payload": { "name": null, "step": [ 1, [ 1, [ 4, 0, 1, [ 5, "mciTraceLog", [ 19, "600" ], "MCITraceUnsampledEventTraceId", [ 9 ], [ 19, "0" ], [ 9 ], "DatascriptExecute_SyncGroup_ServerTrace:1", [ 19, "9" ] ] ] ], [ 1, [ 4, 0, 1, [ 5, "executeFirstBlockForSyncTransaction", [ 19, "1" ], [ 19, "7072585424979190618" ], "HCwAABa-jhkW1pLF0AwTBRaqorGW1LyyPwA", "HCwAABbAjhkW1pLF0AwTBRaqorGW1LyyPwA", [ 19, "2" ], false, [ 19, "0" ], false, [ 19, "1" ], [ 9 ] ] ], [ 23, [ 2, 0 ], [ 1, [ 1, [ 5, "upsertMessage", "Jesi li ti pogledao gore \\u0161ta sam ti sve ja slala", [ 9 ], [ 19, "80" ], [ 19, "17842021868538256" ], [ 19, "0" ], [ 19, "1685278041923" ], [ 19, "1685278041923" ], [ 9 ], "mid.$cAAAHy87qoQWOk6tvQ2IYmYp7sGVI", "7068568435217687880", [ 19, "17842021868538256" ], [ 9 ], false, [ 19, "0" ], [ 19, "2" ], [ 19, "2" ], false, [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], false, [ 9 ], false, [ 9 ], [ 9 ], [ 9 ], [ 19, "3" ], false, [ 19, "0" ], [ 19, "1" ], [ 9 ], [ 9 ], [ 19, "0" ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], false ] ], [ 1, [ 5, "setForwardScore", [ 19, "17842021868538256" ], "mid.$cAAAHy87qoQWOkr0-eWIYXf4Y1Lhm", [ 19, "1685262431865" ], [ 9 ] ] ], [ 1, [ 5, "setMessageDisplayedContentTypes", [ 19, "17842021868538256" ], "mid.$cAAAHy87qoQWOkr0-eWIYXf4Y1Lhm", [ 19, "1685262431865" ], "Da hahaha", false, false ] ], [ 1, [ 5, "insertNewMessageRange", [ 19, "17842021868538256" ], [ 19, "1685262431865" ], [ 19, "1685351587288" ], "mid.$cAAAHy87qoQWOkr0-eWIYXf4Y1Lhm", "mid.$cAAAHy87qoQWOmA2l2GIZshZ5s4NX", [ 19, "1685262431865" ], [ 19, "1685355932889" ], true, true, [ 9 ] ] ], [ 1, [ 5, "upsertSequenceId", [ 19, "205728" ] ] ] ] ] ], [ 1, [ 1, [ 5, "executeFinallyBlockForSyncTransaction", false, [ 19, "1" ], [ 19, "7072585424979190618" ] ] ], [ 1, [ 4, 0, 1, [ 5, "mciTraceLog", [ 19, "601" ], "MCITraceUnsampledEventTraceId", [ 9 ], [ 19, "0" ], [ 9 ], [ 9 ], [ 19, "9" ] ] ] ] ] ] }, "sp": [ "mciTraceLog", "executeFirstBlockForSyncTransaction", "upsertMessage", "updateReadReceipt", "insertXmaAttachment", "insertAttachmentItem", "upsertReaction", "setForwardScore", "setMessageDisplayedContentTypes", "getFirstAvailableAttachmentCTAID", "insertAttachmentCta", "updateAttachmentItemCtaAtIndex", "updateAttachmentCtaAtIndexIgnoringAuthority", "insertNewMessageRange", "upsertSequenceId", "executeFinallyBlockForSyncTransaction" ], "target": 3 }

the array of arrays which contains 'upsertmessage' is the meat and potatoes. inside, you will find something like mid.$cAAAHy87qoQWOkr0-eWIYXf4Y1Lhm

afterwards, the unsend message socket emit will look something like

2..../ls_req.*{ "app_id": "936619743392459", "payload": { "tasks": [ { "label": "33", "payload": {\\"message_id\\":\\"mid.$cAAAHvhog5IyOWjiFVWIKPM67gMn1\\" }","queue_name":"unsend_message","task_id":109,"failure_count":null}],"epoch_id":7072584724001406000,"version_id":"6011885498940893"},"request_id"

of course, this is all binary.

Preppyprep commented 1 year ago

@pishangujeniya chat now works over websockets. It will open a connection like wss://edge-chat.instagram.com/chat?sid=8553407468011519&cid=aca2bbac-01f8-4a31-b4e0-185c2330a4de

and the thread IDs and message IDs will be buried somewhere. look for "big" socket messages

example: { "request_id": null, "payload": { "name": null, "step": [ 1, [ 1, [ 4, 0, 1, [ 5, "mciTraceLog", [ 19, "600" ], "MCITraceUnsampledEventTraceId", [ 9 ], [ 19, "0" ], [ 9 ], "DatascriptExecute_SyncGroup_ServerTrace:1", [ 19, "9" ] ] ] ], [ 1, [ 4, 0, 1, [ 5, "executeFirstBlockForSyncTransaction", [ 19, "1" ], [ 19, "7072585424979190618" ], "HCwAABa-jhkW1pLF0AwTBRaqorGW1LyyPwA", "HCwAABbAjhkW1pLF0AwTBRaqorGW1LyyPwA", [ 19, "2" ], false, [ 19, "0" ], false, [ 19, "1" ], [ 9 ] ] ], [ 23, [ 2, 0 ], [ 1, [ 1, [ 5, "upsertMessage", "Jesi li ti pogledao gore \\u0161ta sam ti sve ja slala", [ 9 ], [ 19, "80" ], [ 19, "17842021868538256" ], [ 19, "0" ], [ 19, "1685278041923" ], [ 19, "1685278041923" ], [ 9 ], "mid.$cAAAHy87qoQWOk6tvQ2IYmYp7sGVI", "7068568435217687880", [ 19, "17842021868538256" ], [ 9 ], false, [ 19, "0" ], [ 19, "2" ], [ 19, "2" ], false, [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], false, [ 9 ], false, [ 9 ], [ 9 ], [ 9 ], [ 19, "3" ], false, [ 19, "0" ], [ 19, "1" ], [ 9 ], [ 9 ], [ 19, "0" ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], [ 9 ], false ] ], [ 1, [ 5, "setForwardScore", [ 19, "17842021868538256" ], "mid.$cAAAHy87qoQWOkr0-eWIYXf4Y1Lhm", [ 19, "1685262431865" ], [ 9 ] ] ], [ 1, [ 5, "setMessageDisplayedContentTypes", [ 19, "17842021868538256" ], "mid.$cAAAHy87qoQWOkr0-eWIYXf4Y1Lhm", [ 19, "1685262431865" ], "Da hahaha", false, false ] ], [ 1, [ 5, "insertNewMessageRange", [ 19, "17842021868538256" ], [ 19, "1685262431865" ], [ 19, "1685351587288" ], "mid.$cAAAHy87qoQWOkr0-eWIYXf4Y1Lhm", "mid.$cAAAHy87qoQWOmA2l2GIZshZ5s4NX", [ 19, "1685262431865" ], [ 19, "1685355932889" ], true, true, [ 9 ] ] ], [ 1, [ 5, "upsertSequenceId", [ 19, "205728" ] ] ] ] ] ], [ 1, [ 1, [ 5, "executeFinallyBlockForSyncTransaction", false, [ 19, "1" ], [ 19, "7072585424979190618" ] ] ], [ 1, [ 4, 0, 1, [ 5, "mciTraceLog", [ 19, "601" ], "MCITraceUnsampledEventTraceId", [ 9 ], [ 19, "0" ], [ 9 ], [ 9 ], [ 19, "9" ] ] ] ] ] ] }, "sp": [ "mciTraceLog", "executeFirstBlockForSyncTransaction", "upsertMessage", "updateReadReceipt", "insertXmaAttachment", "insertAttachmentItem", "upsertReaction", "setForwardScore", "setMessageDisplayedContentTypes", "getFirstAvailableAttachmentCTAID", "insertAttachmentCta", "updateAttachmentItemCtaAtIndex", "updateAttachmentCtaAtIndexIgnoringAuthority", "insertNewMessageRange", "upsertSequenceId", "executeFinallyBlockForSyncTransaction" ], "target": 3 }

the array of arrays which contains 'upsertmessage' is the meat and potatoes. inside, you will find something like mid.$cAAAHy87qoQWOkr0-eWIYXf4Y1Lhm

afterwards, the unsend message socket emit will look something like

2..../ls_req.*{ "app_id": "936619743392459", "payload": { "tasks": [ { "label": "33", "payload": {\\"message_id\\":\\"mid.$cAAAHvhog5IyOWjiFVWIKPM67gMn1\\" }","queue_name":"unsend_message","task_id":109,"failure_count":null}],"epoch_id":7072584724001406000,"version_id":"6011885498940893"},"request_id"

of course, this is all binary.

Is this a solution or just an aid for the diagnosis for @pishangujeniya? @miloscu

pishangujeniya commented 1 year ago

@Preppyprep its helping in diagnosis, but it is clear that whole code is useless, nothing will work as of now, because of this.

So, it is now tough to do automation by the user itself without providing credentials of account to the script.

So, I am thinking on re-developing whole from scratch, but this time it will be in need of credentials most probably. Do not worry, the tool or program never stores credentials anywhere it will just mimick the actions, but I feel that with this approch, there will be some people who will not trust our tool and will have concerns in providing credentials.

No decisions yet.

I am looking for remote job as of now as software developer, so not able to focus on this. If you can refer me then it will be very much helpful.

pishangujeniya commented 1 year ago

As of now, a person has provided a temporary solution - https://github.com/pishangujeniya/instagram-helper/issues/101#issue-1773569865

I haven't tested personally, but someone can at least try.

Ev1lT3rm1nal commented 1 year ago

Any update on this?