Språk

SlackClientWrapper Klass

Definition

Varning

The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.

[System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")]
public class SlackClientWrapper
[<System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")>]
type SlackClientWrapper = class
Public Class SlackClientWrapper
Arv
SlackClientWrapper
Attribut

Konstruktorer

Name Description
SlackClientWrapper(SlackClientWrapperOptions)
Föråldrad.

Initierar en ny instans av SlackClientWrapper klassen. Skapar en Slack-klient genom att tillhandahålla åtkomsttoken.

Egenskaper

Name Description
Identity
Föråldrad.

Får användaridentiteten.

Options
Föråldrad.

SlackClientWrapperOptionsHämtar .

Metoder

Name Description
DeleteMessageAsync(String, DateTime, CancellationToken)
Föråldrad.

Wraps Slack API:s DeleteMessageAsync-metod.

GetBotUserIdentity(Activity)
Föråldrad.

Få bot-användar-ID kopplat till teamet där en inkommande aktivitet startade. Detta används internt av SlackMessageTypeMiddleware för att identifiera direct_mention och nämna händelser. I single-team-läge hämtar detta informationen från Slack API vid lansering. I multi-team-läge kommer detta att använda metoden getBotUserByTeam som skickas till konstruktören för att hämta informationen från en utvecklardefinierad källa.

LoginWithSlackAsync(CancellationToken)
Föråldrad.

Hanterar inloggningen till Slack med de givna inloggningsuppgifterna.

PostMessageAsync(NewSlackMessage, CancellationToken)
Föråldrad.

Lägger upp ett meddelande på Slack.

TestAuthAsync(CancellationToken)
Föråldrad.

Wraps Slack API:s TestAuthAsync-metod.

UpdateAsync(String, String, String, String, String, Boolean, Attachment[], Boolean, CancellationToken)
Föråldrad.

Wraps Slack API:s UpdateAsync-metod.

VerifySignature(HttpRequest, String)
Föråldrad.

Validerar den lokala hemligheten mot den som erhålls från begäran.

Gäller för