Skip to content

ActivityHandler inheriting from Bot #1443

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Dec 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions libraries/botbuilder-core/botbuilder/core/activity_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
HealthCheckResponse,
)

from .bot import Bot
from .bot_adapter import BotAdapter
from .healthcheck import HealthCheck
from .serializer_helper import serializer_helper
Expand All @@ -20,7 +21,7 @@
from .turn_context import TurnContext


class ActivityHandler:
class ActivityHandler(Bot):
"""
Handles activities and should be subclassed.

Expand All @@ -30,7 +31,9 @@ class ActivityHandler:
in the derived class.
"""

async def on_turn(self, turn_context: TurnContext):
async def on_turn(
self, turn_context: TurnContext
): # pylint: disable=arguments-differ
"""
Called by the adapter (for example, :class:`BotFrameworkAdapter`) at runtime
in order to process an inbound :class:`botbuilder.schema.Activity`.
Expand Down