teams
teams
¶
TeamsChannel — Microsoft Teams Bot Framework adapter.
Classes¶
TeamsChannel
¶
TeamsChannel(
app_id: str = "",
*,
app_password: str = "",
service_url: str = "",
bus: Optional[EventBus] = None,
)
Bases: BaseChannel
Microsoft Teams channel adapter using the Bot Framework REST API.
| PARAMETER | DESCRIPTION |
|---|---|
app_id
|
Microsoft App ID. Falls back to
TYPE:
|
app_password
|
Microsoft App Password. Falls back to
TYPE:
|
service_url
|
Bot Framework service URL. Falls back to
TYPE:
|
bus
|
Optional event bus for publishing channel events.
TYPE:
|
Source code in src/diapason/channels/teams.py
Methods:¶
connect
¶
Mark as connected (send-only — no persistent connection).
Source code in src/diapason/channels/teams.py
disconnect
¶
send
¶
send(
channel: str,
content: str,
*,
conversation_id: str = "",
metadata: Dict[str, Any] | None = None,
) -> bool
Send a message to a Teams conversation via the Bot Framework API.
Source code in src/diapason/channels/teams.py
status
¶
status() -> ChannelStatus