question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Discussion: Recommended way of using createDMs?

See original GitHub issue

Just wanted to ask if there are any recommended best practices for using createDM as you mention it is one of the calls to be careful with.

Any recommendations on how frequently it’s ok to call? Every other second? Every 10 seconds? Is it better to call with many user ids at once or separately for each? If nobody knows, that’s ok, I realize some of it is up to personal taste for risk, but wanted to check. Thanks!


arandomnewaccount: Btw, I’m going to wait until I run a few more tests with the createDM endpoint (& organize some code in RESTapiwrap.py) until I give my recommendations on this. If anyone else has some more experience with creating DMs, feel free to jump in.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8

github_iconTop GitHub Comments

4reactions
cvccicommented, May 21, 2021

image the moment i tried to mass dm (I failed but got insta tapped only sent 1 message to my own account)


arandomnewaccount: small update: creating DMs worked just fine with a browser automator. I could even send messages and my account did not get phone locked. However, there’re some restrictions as to who you can dm; you can only DM ppl that are in a member list.

The reason for this is that you need to get a user profile popup in order to create the DM. Only members from the member list have this popup. Indeed, you don’t have to click on a member in the member list to start a DM with that member (you can, instead, click on a mention of that user). But, if the data for that user has not been cached by the client (which is done by scrolling thru the member list), you cannot get a create DM popup for that user.

Btw, by user popup, I’m referring to this: popupexample

0reactions
thunderstorm010commented, Mar 27, 2022

I wanted to update on something, don’t you think that the client is sending a “typing” update as we can see peoples writing ?

(I talk about “xxxx is writing …”)

Official bots are also able to simulate the wrinting.

https://discord.com/developers/docs/resources/channel#trigger-typing-indicator

Read more comments on GitHub >

github_iconTop Results From Across the Web

Question: Best method to document processes?
I'm taking over a set of processes and wanting to know the recommended or best way to create documentation of existing Connectors, ...
Read more >
New way of doing HTML/ASP > MS Word/Excel Doc - SitePoint
I have always dynamically created MS Word/Excel docs by creating a ... I'm aware that MS recommend SO for discussions, but Classic Asp ......
Read more >
MS Form - as the creator of a form, can I edit responses?
MS Form - as the creator of a form, can I edit responses? We are using Office 365 for Business. I have created...
Read more >
Can we create a new user using Java API? — oracle-tech
... us to be able to create DMS users from the Mobile device side. ... 2) use a way to distribute the mobile...
Read more >
my Ms.Medicine | Exceptional Concierge and DPC Doctors
By not billing insurance, providers can practice medicine the way patients ... We created Ms.Medicine with a mission to raise the standard of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found