/AWS1/CL_CHS=>SENDCHANNELMESSAGE()
¶
About SendChannelMessage¶
Sends a message to a particular channel that the member is a part of.
The x-amz-chime-bearer
request header is mandatory. Use the
ARN of the AppInstanceUser
or AppInstanceBot
that makes the API call as the value in
the header.
Also, STANDARD
messages can be up to 4KB in size and contain metadata. Metadata is arbitrary,
and you can use it in a variety of ways, such as containing a link to an attachment.
CONTROL
messages are limited to 30 bytes and do not contain metadata.
Method Signature¶
IMPORTING¶
Required arguments:¶
IV_CHANNELARN
TYPE /AWS1/CHSCHIMEARN
/AWS1/CHSCHIMEARN
¶
The ARN of the channel.
IV_CONTENT
TYPE /AWS1/CHSNONEMPTYCONTENT
/AWS1/CHSNONEMPTYCONTENT
¶
The content of the channel message.
IV_TYPE
TYPE /AWS1/CHSCHANNELMESSAGETYPE
/AWS1/CHSCHANNELMESSAGETYPE
¶
The type of message,
STANDARD
orCONTROL
.
STANDARD
messages can be up to 4KB in size and contain metadata. Metadata is arbitrary, and you can use it in a variety of ways, such as containing a link to an attachment.
CONTROL
messages are limited to 30 bytes and do not contain metadata.
IV_PERSISTENCE
TYPE /AWS1/CHSCHANNELMSGPERSISTEN00
/AWS1/CHSCHANNELMSGPERSISTEN00
¶
Boolean that controls whether the message is persisted on the back end. Required.
IV_CLIENTREQUESTTOKEN
TYPE /AWS1/CHSCLIENTREQUESTTOKEN
/AWS1/CHSCLIENTREQUESTTOKEN
¶
The
Idempotency
token for each client request.
IV_CHIMEBEARER
TYPE /AWS1/CHSCHIMEARN
/AWS1/CHSCHIMEARN
¶
The ARN of the
AppInstanceUser
orAppInstanceBot
that makes the API call.
Optional arguments:¶
IV_METADATA
TYPE /AWS1/CHSMETADATA
/AWS1/CHSMETADATA
¶
The optional metadata for each message.
IO_PUSHNOTIFICATION
TYPE REF TO /AWS1/CL_CHSPUSHNOTIFCONF
/AWS1/CL_CHSPUSHNOTIFCONF
¶
The push notification configuration of the message.
IT_MESSAGEATTRIBUTES
TYPE /AWS1/CL_CHSMESSAGEATTRVALUE=>TT_MESSAGEATTRIBUTEMAP
TT_MESSAGEATTRIBUTEMAP
¶
The attributes for the message, used for message filtering along with a
FilterRule
defined in thePushNotificationPreferences
.
IV_SUBCHANNELID
TYPE /AWS1/CHSSUBCHANNELID
/AWS1/CHSSUBCHANNELID
¶
The ID of the SubChannel in the request.
IV_CONTENTTYPE
TYPE /AWS1/CHSCONTENTTYPE
/AWS1/CHSCONTENTTYPE
¶
The content type of the channel message.
IT_TARGET
TYPE /AWS1/CL_CHSTARGET=>TT_TARGETLIST
TT_TARGETLIST
¶
The target of a message. Must be a member of the channel, such as another user, a bot, or the sender. Only the target and the sender can view targeted messages. Only users who can see targeted messages can take actions on them. However, administrators can delete targeted messages that they can’t see.
RETURNING¶
OO_OUTPUT
TYPE REF TO /AWS1/CL_CHSSENDCHANNELMSGRSP
/AWS1/CL_CHSSENDCHANNELMSGRSP
¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC