Versions in this module Expand all Collapse all v1 v1.2.4 Feb 13, 2024 v1.2.3 Feb 13, 2024 Changes in this version + func GetErrorCode(err error) string + type BotFrameworkClient struct + func NewBotFrameworkClient(config Config) *BotFrameworkClient + func (c *BotFrameworkClient) PostAdaptiveCardActivity(ctx context.Context, botID, chatID, card, updateID string) (string, error) + type Chat struct + ID string + TenantID string + WebURL string + type Client struct + type Config struct + AppID string + AppSecret string + Region string + TeamsAppID string + TenantID string + func (c *Config) SetBaseURLs(token, graph, bot string) + type GraphClient struct + func NewGraphClient(config Config) *GraphClient + func (c *GraphClient) GetAppForTeam(ctx context.Context, app *TeamsApp, teamID string) (*InstalledApp, error) + func (c *GraphClient) GetAppForUser(ctx context.Context, app *TeamsApp, userID string) (*InstalledApp, error) + func (c *GraphClient) GetChatForInstalledApp(ctx context.Context, userID, installationID string) (Chat, error) + func (c *GraphClient) GetTeamsApp(ctx context.Context, teamsAppID string) (*TeamsApp, error) + func (c *GraphClient) GetUserByEmail(ctx context.Context, email string) (*User, error) + func (c *GraphClient) GetUserByID(ctx context.Context, id string) (*User, error) + func (c *GraphClient) InstallAppForUser(ctx context.Context, userID, teamAppID string) error + func (c *GraphClient) UninstallAppForUser(ctx context.Context, userID, teamAppID string) error + type InstalledApp struct + ID string + TeamsApp TeamsApp + type PostActivityResponse struct + ID string + type TeamsApp struct + DisplayName string + DistributionMethod string + ExternalID string + ID string + type Token struct + AccessToken string + ExpiresIn int64 + type User struct + ID string + JobTitle string + Mail string + Name string