set Message Rate Limit
Configures the rate limit for sending messages. This method allows setting the maximum number of messages that can be sent within a specified time interval. If the limit is reached within the interval, the user must wait until the interval period has passed before sending more messages. For example, if the interval is 60 seconds and the limit is reached in 30 seconds, the user must wait an additional 30 seconds before sending more messages.
Return
A ChatConfigError if the parameters are invalid, or null if the rate limit was successfully set.
Parameters
max Messages
The maximum number of messages allowed. Must be greater than 0.
interval In Seconds
The time interval in seconds within which the message limit applies. Must be greater than 0.