Skip to content

Allow unfurl_media and unfurl_links args to be passed to respond and ack methods #346

Description

@gburek-fastly

As described in https://github.com/slackhq/slack-api-docs/blob/master/page_unfurling.md a bot message can send "unfurl_media": True, "unfurl_links": Trueargs tosay` or chat.postMessage API method.

However, the respond and ack methods do not take other **kwargs, and fails with TypeError: _build_message() got an unexpected keyword argument 'unfurl_media'\n"

This is also described in slackapi/bolt-js#466 with the say method but should be possible with respond or ack.

Category (place an x in each of the [ ])

  • slack_bolt.App and/or its core components
  • slack_bolt.async_app.AsyncApp and/or its core components
  • Adapters in slack_bolt.adapter
  • Others

Requirements

Please read the Contributing guidelines and Code of Conduct before creating this issue or pull request. By submitting, you are agreeing to those rules.

Activity

  1. added this to the 1.6.1 milestone on May 22, 2021
  2. seratch commented on May 22, 2021

    @seratch
    Contributor

    Hi @gburek-fastly, thanks for taking the time to report this! We'll fix this issue in the next release.

  3. added a commit that references this issue on Jun 3, 2021
    e6079cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions