Jaa


WebexClientWrapper.CreateMessageWithAttachmentsAsync Method

Definition

Creates a message with attachments.

public virtual System.Threading.Tasks.Task<string> CreateMessageWithAttachmentsAsync (string recipient, string text, System.Collections.Generic.IList<Microsoft.Bot.Schema.Attachment> attachments, Thrzn41.WebexTeams.Version1.MessageTextType messageType = Thrzn41.WebexTeams.Version1.MessageTextType.Text, Thrzn41.WebexTeams.Version1.MessageTarget target = Thrzn41.WebexTeams.Version1.MessageTarget.PersonId, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateMessageWithAttachmentsAsync : string * string * System.Collections.Generic.IList<Microsoft.Bot.Schema.Attachment> * Thrzn41.WebexTeams.Version1.MessageTextType * Thrzn41.WebexTeams.Version1.MessageTarget * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
override this.CreateMessageWithAttachmentsAsync : string * string * System.Collections.Generic.IList<Microsoft.Bot.Schema.Attachment> * Thrzn41.WebexTeams.Version1.MessageTextType * Thrzn41.WebexTeams.Version1.MessageTarget * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Overridable Function CreateMessageWithAttachmentsAsync (recipient As String, text As String, attachments As IList(Of Attachment), Optional messageType As MessageTextType = Thrzn41.WebexTeams.Version1.MessageTextType.Text, Optional target As MessageTarget = Thrzn41.WebexTeams.Version1.MessageTarget.PersonId, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parameters

recipient
String

PersonId, email or roomId of the message.

text
String

Text of the message.

attachments
IList<Attachment>

List of attachments attached to the message.

messageType
Thrzn41.WebexTeams.Version1.MessageTextType

Type of the message. It can be Text or Markdown.

target
Thrzn41.WebexTeams.Version1.MessageTarget

Target for the message.

cancellationToken
CancellationToken

A cancellation token for the task.

Returns

The created message id.

Applies to