Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

6
[PRAW] Private message limitations
Post Flair (click to view more posts with a particular flair)
Author Summary
Security_Chief_Odo is in PRAW
Post Body

I have a newly created bot that I am trying to send PMs to users with, using PRAW function as reddit.redditor(user).message(subject=subject, message=msg) (only users that have opted in, no spam)

PRAW is returning an error message of RESTRICTED_TO_PM and User doesn't accept direct messages. Try sending a chat request instead.

I get this is a form of spam and bot prevention for a reason, and that I just need to wait to be able to send them as a bot user. But here's what I don't understand about that.

If send the same user a bot PM on the Reddit desktop site, it gets sent just fine with no errors. Using Reddit Is Fun on Android mobile as the bot user, I can successfully send the same user, the same PM message.

It is only my PRAW script that has this limitation of being blocked for sending a PM. Why is that? How can RIF send an API PM as my bot user, and bot user can send from the website, but my PRAW script can't ?

Author
Account Strength
100%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
46,932
Link Karma
4,392
Comment Karma
34,827
Profile updated: 1 week ago

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago