8000 removing unneeded improts · guptarohan41/botbuilder-python@3384c08 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3384c08

Browse files
committed
removing unneeded improts
1 parent 21ffa54 commit 3384c08

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

libraries/botbuilder-core/botbuilder/core/turn_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,9 +359,9 @@ def remove_recipient_mention(activity: Activity) -> str:
359359
def remove_mention_text(activity: Activity, identifier: str) -> str:
360360
mentions = TurnContext.get_mentions(activity)
361361
for mention in mentions:
362-
if mention.mentioned.id == identifier:
362+
if mention.additional_properties["mentioned"]["id"] == identifier:
363363
mention_name_match = re.match(
364-
r"<at(.*)>(.*?)<\/at>", mention.text, re.IGNORECASE
364+
r"<at(.*)>(.*?)<\/at>", mention.additional_properties["text"], re.IGNORECASE
365365
)
366366
if mention_name_match:
367367
activity.text = re.sub(

samples/57.teams-conversation-bot/bots/teams_conversation_bot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from botbuilder.core import CardFactory, TurnContext, MessageFactory
22
from botbuilder.core.teams import TeamsActivityHandler, TeamsInfo
3-
from botbuilder.core.teams.teams_activity_extensions import teams_get_channel_id
4-
from botbuilder.schema import CardAction, ConversationParameters, HeroCard, Mention
3+
from botbuilder.schema import CardAction, HeroCard, Mention
54
from botbuilder.schema._connector_client_enums import ActionTypes
65

76

0 commit comments

Comments
 (0)
0