teams

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package teams exposes the Microsoft Teams (Azure Bot Framework) constructor, the raw-message accessor, and the Config/Message types for botbooter. Import it for a Teams bot; the adapter speaks the Bot Connector REST API over plain HTTP, so a Teams-only binary pulls in no third-party platform SDK — it never compiles discordgo, slack-go or go-telegram.

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingConfig = teamsint.ErrMissingConfig

ErrMissingConfig is returned by New when a required Config field is empty.

View Source
var ErrUnknownConversation = teamsint.ErrUnknownConversation

ErrUnknownConversation is returned by a Teams bot's Send when the target conversation has not been seen on an inbound Activity (or was evicted), so no serviceUrl is known. Branch it with errors.Is.

Functions

func Addr

func Addr(b *botbooter.Bot) string

Addr returns the address b's webhook listener is bound to (host:port), or "" if b is not a Teams bot or is not connected. Use it to recover the OS-assigned port after passing cfg.Addr ":0".

func New

func New(cfg Config) (*botbooter.Bot, error)

New creates a Microsoft Teams bot backed by the Azure Bot Framework. It runs an inbound webhook HTTP server at cfg.Addr, so put a TLS-terminating proxy in front and register the public HTTPS URL as your Azure Bot resource's messaging endpoint. It returns ErrMissingConfig if a required config field is missing.

Types

type Config

type Config = teamsint.Config

Config configures a Microsoft Teams (Azure Bot Framework) bot.

type Message

type Message = teamsint.Message

Message is the parsed payload of an inbound Bot Framework Activity.

func RawMessage

func RawMessage(m *botbooter.Message) (*Message, bool)

RawMessage returns the parsed Teams message carried on m, reporting whether m originated from Teams.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL