- Value parameters:
- as_user
Pass true to post the message as the authed user. Defaults to true if the chat:write:bot scope is not included. Otherwise, defaults to false.
- attachments
A JSON-based array of structured attachments, presented as a URL-encoded string.
- blocks
A JSON-based array of structured blocks, presented as a URL-encoded string.
- channel
Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name.
- icon_emoji
Emoji to use as the icon for this message. Overrides
icon_url
. Must be used in conjunction withas_user
set tofalse
, otherwise ignored. See authorship below.- icon_url
URL to an image to use as the icon for this message. Must be used in conjunction with
as_user
set to false, otherwise ignored. See authorship below.- link_names
Find and link channel names and usernames.
- parse
Change how messages are treated. Defaults to
none
. See below.- text
How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.
- thread_ts
Provide another message's
ts
value to post this message in a thread. Avoid using a reply'sts
value; use its parent's value instead. Ephemeral messages in threads are only shown if there is already an active thread.- user
id
of the user who will receive the ephemeral message. The user should be in the channel specified by thechannel
argument.- username
Set your bot's user name. Must be used in conjunction with
as_user
set to false, otherwise ignored. See authorship below.
- Companion:
- object
case class PostEphemeralChatRequest(channel: String, user: String, as_user: Option[Boolean], attachments: Option[String], blocks: Option[String], icon_emoji: Option[String], icon_url: Option[String], link_names: Option[Boolean], parse: Option[String], text: Option[String], thread_ts: Option[String], username: Option[String])
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any