Skip to content

Commit 9625f5b

Browse files
author
Mehak Bindra
committed
add docs
1 parent 2b50828 commit 9625f5b

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

packages/botbuilder/pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ dependencies = [
1313
"botbuilder-integration-aiohttp>=4.17.0",
1414
"microsoft-teams-apps",
1515
"microsoft-teams-api",
16-
"microsoft-teams-common",
17-
"coverage>=7.8.0",
18-
"pytest>=8.3.5",
19-
"ruff>=0.11.5",
16+
"microsoft-teams-common"
2017
]
2118

2219
[dependency-groups]

packages/botbuilder/src/microsoft/teams/botbuilder/botbuilder_plugin.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,15 @@ async def on_init(self) -> None:
104104
self.logger.info("BotBuilder plugin initialized successfully")
105105

106106
async def on_activity_request(self, request: Request, response: Response) -> Any:
107+
"""
108+
Handles an incoming activity.
109+
110+
Overrides the base HTTP plugin behavior to:
111+
1. Process the activity using the Bot Framework adapter/handler.
112+
2. Then pass the request to the Teams plugin pipeline (_handle_activity_request).
113+
114+
Returns the final HTTP response.
115+
"""
107116
if not self.adapter:
108117
raise RuntimeError("plugin not registered")
109118

0 commit comments

Comments
 (0)