I did a search but couldn't find anything of relevance. Here are a few
questions on best practice:

1) I'm developing a Twitter bot which accepts commands via Direct
Message and was wondering if there's a hard limit to the number of DMs
a user can store. Essentially: should I be deleting the DMs after I
receive and parse them? Will I reach a point where the account is
flooded with Direct Messages and I cannot receive anymore?

2) The bot is also capable of sending Direct Messages back to users.
At present, there's no check to see whether or not that particular
user is following the bot account. Is it considered best practice to
perform this check, or just to attempt to send the Direct Message and
fail gracefully if Twitter blocks the message? There seems to be some
difficulty with Twitter not returning valid following data, at
present. I'm just worried that if Twitter see an account sending
numerous DMs to accounts which are not following them, they'll label
the bot as spam.

Thanks!

Reply via email to