Need to increase payload limit for slack channel - Bot Channel Registration

Sunil Keshari 0 Reputation points
2025-01-17T10:38:59.6766667+00:00

I created Azure bot (samsbot-prod), added Teams and slack in channel.

When I try to send a file in teams it works, but in slack i’m getting below error “Error while capturing screenshot: RestError: The request content length exceeded limit of 262144 bytes.“

Is there a way to increase the payload limit?

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
882 questions
{count} votes

1 answer

Sort by: Most helpful
  1. kothapally Snigdha 950 Reputation points Microsoft Vendor
    2025-01-17T14:11:31.8433333+00:00

    Hi @Sunil Keshari

    Greetings & Welcome to the Microsoft Q&A forum! Thank you for sharing your query.

    I understand your facing an error with exceeded limit. kindly follow these steps.

    • Ensure that the file you're trying to send does not exceed Slack’s size limitations—1GB for file uploads and 1MB for message payloads. If the file is too large, consider reducing its size or compressing it before attempting to upload it again.
    • The bot may not have the necessary permissions to send files or interact with Slack channels in the way you're trying.
    • Confirm that your bot has the correct scope and authorization to upload and share files. Another helpful step is to test with smaller files to isolate the issue and confirm whether it's related to the file size.

    Kindly refer this Size limit.

    I hope you understand. And, if you have any further query do let us know.

    Thank you!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.