SlackClientWrapper.UpdateAsync Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Envuelve el método UpdateAsync de la API de Slack.
public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.Adapters.Slack.Model.SlackResponse> UpdateAsync(string ts, string channelId, string text, string botName = default, string parse = default, bool linkNames = false, SlackAPI.Attachment[] attachments = default, bool asUser = false, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : string * string * string * string * string * bool * SlackAPI.Attachment[] * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Adapters.Slack.Model.SlackResponse>
override this.UpdateAsync : string * string * string * string * string * bool * SlackAPI.Attachment[] * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Adapters.Slack.Model.SlackResponse>
Public Overridable Function UpdateAsync (ts As String, channelId As String, text As String, Optional botName As String = Nothing, Optional parse As String = Nothing, Optional linkNames As Boolean = false, Optional attachments As Attachment() = Nothing, Optional asUser As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SlackResponse)
Parámetros
- ts
- String
Marca de tiempo del mensaje.
- channelId
- String
El canal del que eliminar el mensaje.
- text
- String
El mensaje para actualizar.
- botName
- String
El nombre opcional del bot.
- parse
- String
Cambia cómo se tratan los mensajes. Por defecto es 'ninguno'. Consulte https://api.slack.com/methods/chat.postMessage#formatting.
- linkNames
- Boolean
Si buscas y enlazas nombres de canales y nombres de usuario.
- attachments
- SlackAPI.Attachment[]
Los apegos, si es que hay alguno.
- asUser
- Boolean
Si el mensaje se envía como usuario en lugar de como bot.
- cancellationToken
- CancellationToken
Un token de cancelación para la tarea.
Devoluciones
A representa SlackAPI.UpdateResponse la respuesta a la operación.