GitHub

API reference for Limits.

A platform's limits, each in the platform's own unit.

  • message_length is the limit for one message, less any fixed overhead the text does not carry.
  • min_write_interval is the default floor between two writes to one thread, for streamed and multi-part posts.
  • stream_length / stream_age apply to native streams only; stream_length is never more than message_length.
  • actions_per_message and action_data_length are there exactly with buttons, modal_metadata_length and modal_fields with modals, follow_up_age with commands.

Attributes

AttributeTypeDescription
message_lengthint
files_per_messageint
upload_bytesint
min_write_intervalDuration
stream_lengthint | None = None
stream_ageDuration | None = None
actions_per_messageint | None = None
action_data_lengthint | None = None
modal_metadata_lengthint | None = None
modal_fieldsint | None = None
follow_up_ageDuration | None = None

Functions

__init__

__init__(*, message_length, files_per_message, upload_bytes, min_write_interval, stream_length=None, stream_age=None, actions_per_message=None, action_data_length=None, modal_metadata_length=None, modal_fields=None, follow_up_age=None) -> None
ParameterTypeDescription
message_lengthint
files_per_messageint
upload_bytesint
min_write_intervalDuration
stream_lengthint | None = None
stream_ageDuration | None = None
actions_per_messageint | None = None
action_data_lengthint | None = None
modal_metadata_lengthint | None = None
modal_fieldsint | None = None
follow_up_ageDuration | None = None