@@ -529,7 +529,7 @@ async def on_conversation_update_activity(self, turn_context: TurnContext):
529
529
channel_data .channel , channel_data .team , turn_context
530
530
)
531
531
if channel_data .event_type == "teamRenamed" :
532
- return await self .on_teams_team_renamed_activity (
532
+ return await self .on_teams_team_renamed (
533
533
channel_data .team , turn_context
534
534
)
535
535
if channel_data .event_type == "teamRestored" :
@@ -600,10 +600,27 @@ async def on_teams_team_hard_deleted( # pylint: disable=unused-argument
600
600
"""
601
601
return
602
602
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
+
603
617
async def on_teams_team_renamed_activity ( # pylint: disable=unused-argument
604
618
self , team_info : TeamInfo , turn_context : TurnContext
605
619
):
606
620
"""
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
+
607
624
Invoked when a Team Renamed event activity is received from the connector.
608
625
Team Renamed correspond to the user renaming an existing team.
609
626
0 commit comments