Skip to content

What is file_annotation parameter of chat_postMessage method? #1321

@0417taehyun

Description

@0417taehyun

I want to know how file_annotation parameter works with chat_postMessage method. I already search it on issue and the document of the chat_postMessage method, but there was no appropriate information about it.

    def chat_postMessage(
        self,
        *,
        channel: str,
        text: Optional[str] = None,
        ...
        file_annotation: Optional[str] = None, # > How can I use this? 
        ...
        **kwargs,
    ) -> SlackResponse:

In my case, I use bolt SDK to handle the message events on socket mode, and want to send message to another channels if the message was sent by a user. However, if the file is attached to the origin message, there was no ways to send the same file to the bot message, which was sent by bot with bolt SDK.

I assume to use the file_annotation parameter in the chat_postMessage method, but there was no information to teach how it works. Isn't is supported yet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionM-T: User needs support to use the project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions