instagrapi icon indicating copy to clipboard operation
instagrapi copied to clipboard

[Feature Request] Simulate Human-Like Typing Before Sending Messages

Open jeel1811 opened this issue 7 months ago • 2 comments

Feature Request: Human-Like Typing Simulation for Direct Messages

Summary: To reduce the chances of Instagram detecting and disabling accounts for bot-like behavior, I propose a feature that simulates human-like typing before sending direct messages via client.direct_send.

Motivation: Sending messages instantly and in large numbers may trigger anti-spam mechanisms. Human-like typing, such as building up the message in partial chunks (H → He → Hel → Hello), helps mimic real user behavior and reduces bot detection risk.

Proposed Solution:

  • Introduce a method like simulate_typing(message: str) -> str that:
    • Builds up the message incrementally
    • Waits random intervals (e.g. 100–300ms) between chunks
    • Returns the final message to be sent by direct_send

Optional Improvements:

  • Integrate with direct_send as an optional argument like:

    client.direct_send(message, user_ids, simulate_typing=True)
    

jeel1811 avatar May 22 '25 11:05 jeel1811

I don't think there is feature to send logs, Try to made own

sunmasters avatar May 23 '25 01:05 sunmasters

I don't think there is feature to send logs, Try to made own

might as well not reply bro

Aze1338 avatar Nov 24 '25 21:11 Aze1338