Lingua

FacebookClientWrapper.TakeThreadControlAsync Metodo

Definizione

Invia l'evento take_thread_control webhook su Facebook.

public virtual System.Threading.Tasks.Task<bool> TakeThreadControlAsync(string userId, string message, System.Threading.CancellationToken cancellationToken);
abstract member TakeThreadControlAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
override this.TakeThreadControlAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Overridable Function TakeThreadControlAsync (userId As String, message As String, cancellationToken As CancellationToken) As Task(Of Boolean)

Parametri

userId
String

L'ID utente del mittente.

message
String

Un messaggio opzionale per il parametro metadati.

cancellationToken
CancellationToken

Token di annullamento che può essere utilizzato da altri oggetti o thread per ricevere un avviso di annullamento.

Valori restituiti

true se l'operazione ha avuto esito positivo; in caso contrario, false.

Eccezioni

userId è null.

Si applica a