
com.github.seratch.jslack.api.methods.request.chat.ChatPostEphemeralRequest Maven / Gradle / Ivy
package com.github.seratch.jslack.api.methods.request.chat;
import com.github.seratch.jslack.api.methods.SlackApiRequest;
import com.github.seratch.jslack.api.model.Attachment;
import com.github.seratch.jslack.api.model.block.LayoutBlock;
import lombok.Builder;
import lombok.Data;
import java.util.List;
@Data
@Builder
public class ChatPostEphemeralRequest implements SlackApiRequest {
/**
* Authentication token. Requires scope: `chat:write`
*/
private String token;
/**
* Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.
*/
private String channel;
/**
* Text of the message to send.
* See below for an explanation of [formatting](#formatting).
* This field is usually required, unless you're providing only `attachments` instead.
*/
private String text;
/**
* `id` of the user who will receive the ephemeral message. The user should be in the channel specified by the `channel` argument.
*/
private String user;
/**
* Pass true to post the message as the authed bot. Defaults to false.
*/
private boolean asUser;
/**
* A JSON-based array of structured blocks, presented as a URL-encoded string.
*/
private List blocks;
/**
* A JSON-based array of structured blocks as a String, presented as a URL-encoded string.
*/
private String blocksAsString;
/**
* A JSON-based array of structured attachments, presented as a URL-encoded string.
*/
private List attachments;
/**
* A JSON-based array of structured attachments, presented as a URL-encoded string.
*/
private String attachmentsAsString;
/**
* Find and link channel names and usernames.
*/
private boolean linkNames;
/**
* Change how messages are treated. Defaults to `none`. See [below](#formatting).
*/
private String parse;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy