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 ¶
var ErrMissingConfig = teamsint.ErrMissingConfig
ErrMissingConfig is returned by New when a required Config field is empty.
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 ¶
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 ¶
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.