@@ -529,7 +529,7 @@ async def on_conversation_update_activity(self, turn_context: TurnContext):
529529 channel_data .channel , channel_data .team , turn_context
530530 )
531531 if channel_data .event_type == "teamRenamed" :
532- return await self .on_teams_team_renamed_activity (
532+ return await self .on_teams_team_renamed (
533533 channel_data .team , turn_context
534534 )
535535 if channel_data .event_type == "teamRestored" :
@@ -600,10 +600,27 @@ async def on_teams_team_hard_deleted( # pylint: disable=unused-argument
600600 """
601601 return
602602
603+ async def on_teams_team_renamed ( # pylint: disable=unused-argument
604+ self , team_info : TeamInfo , turn_context : TurnContext
605+ ):
606+ """
607+ Invoked when a Team Renamed event activity is received from the connector.
608+ Team Renamed correspond to the user renaming an existing team.
609+
610+ :param team_info: The team info object representing the team.
611+ :param turn_context: A context object for this turn.
612+
613+ :returns: A task that represents the work queued to execute.
614+ """
615+ return await self .on_teams_team_renamed_activity (team_info , turn_context )
616+
603617 async def on_teams_team_renamed_activity ( # pylint: disable=unused-argument
604618 self , team_info : TeamInfo , turn_context : TurnContext
605619 ):
606620 """
621+ DEPRECATED. Please use on_teams_team_renamed(). This method will remain in place throughout
622+ v4 so as not to break existing bots.
623+
607624 Invoked when a Team Renamed event activity is received from the connector.
608625 Team Renamed correspond to the user renaming an existing team.
609626
0 commit comments