All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.slack.api.model.event.MessageEvent Maven / Gradle / Ivy

There is a newer version: 1.44.1
Show newest version
package com.slack.api.model.event;

import com.slack.api.model.Attachment;
import com.slack.api.model.BotProfile;
import com.slack.api.model.File;
import com.slack.api.model.block.LayoutBlock;
import lombok.Data;

import java.util.List;

/**
 * A message is delivered from several sources:
 * 

* - They are sent via the Real Time Messaging API when a message is sent to a channel to which you subscribe. * This message should immediately be displayed in the client. * - They are returned via calls to channels.history, im.history or groups.history * - They are returned as latest property on channel, group and im objects. *

* https://api.slack.com/events/message */ @Data public class MessageEvent implements Event { public static final String TYPE_NAME = "message"; private String clientMsgId; private final String type = TYPE_NAME; private String team; private String channel; private String user; private String botId; private BotProfile botProfile; private String text; private List blocks; private List attachments; private List files; private String ts; private String parentUserId; // in the case of replies in thread private String threadTs; // in the case of replies in thread private String eventTs; private String channelType; // app_home, channel, group, im, mpim private Edited edited; @Data public static class Edited { private String user; private String ts; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy