2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Twitter DM 送信数の制限

Posted at

ツイッターAPIは徐々に閉鎖、もしくは有料にする方向らしく、年々レートリミット制限が厳しくなっている。DMの送信数も制限があるのだが、少しややこしいのでここのメモとして書いておく。

POST direct_messages/events/new (message_create) — Twitter Developers

  • ユーザーからメッセージを受信した場合、24時間以内に最大5つのメッセージを送信することができます
  • メッセージを受信するたびに、24時間枠と割り当てられた5つのメッセージがリセットされます
  • 24時間以内に6つ目のメッセージを送信したり、24時間外にメッセージを送信したりすると、レート制限の対象となります
  • この動作は POST direct_messages/events/new エンドポイントを使用している場合にのみ適用されます
  • レート制限の数は、ユーザーあたり1000/24時間、アプリケーションあたり15000/24時間です
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?