diff --git a/libraries/botbuilder-core/botbuilder/core/activity_handler.py b/libraries/botbuilder-core/botbuilder/core/activity_handler.py index e207fa0d2..c5afb5e08 100644 --- a/libraries/botbuilder-core/botbuilder/core/activity_handler.py +++ b/libraries/botbuilder-core/botbuilder/core/activity_handler.py @@ -12,6 +12,7 @@ HealthCheckResponse, ) +from .bot import Bot from .bot_adapter import BotAdapter from .healthcheck import HealthCheck from .serializer_helper import serializer_helper @@ -20,7 +21,7 @@ from .turn_context import TurnContext -class ActivityHandler: +class ActivityHandler(Bot): """ Handles activities and should be subclassed. @@ -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`.