- Value parameters:
- as_user
Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See authorship below.
- 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. See below for more details.
- 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.
- mrkdwn
Disable Slack markup parsing by setting to
false
. Enabled by default.- parse
Change how messages are treated. Defaults to
none
. See below.- reply_broadcast
Used in conjunction with
thread_ts
and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults tofalse
.- 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 make this message a reply. Avoid using a reply'sts
value; use its parent instead.- unfurl_links
Pass true to enable unfurling of primarily text-based content.
- unfurl_media
Pass false to disable unfurling of media content.
- 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 PostMessageChatRequest(channel: String, as_user: Option[Boolean], attachments: Option[String], blocks: Option[String], icon_emoji: Option[String], icon_url: Option[String], link_names: Option[Boolean], mrkdwn: Option[Boolean], parse: Option[String], reply_broadcast: Option[Boolean], text: Option[String], thread_ts: Option[String], unfurl_links: Option[Boolean], unfurl_media: Option[Boolean], username: Option[String])
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any