Forum Discussion
I cannot get the context.activity.locale at onMembersAdded event
Hi Team,
I'm localizing the welcome message when a user installs my App on MST. I would like to get the Locale of the user who installed the app by property: context.activity.locale
Although, I have checked the Installation point stored in Storage Account and I can find the locale of the user
Am I doing wrong or this is by your design. Because I found an answer on StackOverflow but not sure it's official from Microsoft: https://stackoverflow.com/questions/70830318/how-can-i-retrieve-user-locale-when-a-bot-or-member-is-added-msteams-conversa ?
is there anyway else to get the locale of users in the onMembersAdded event?
3 Replies
- Nivedipa-MSFT
Microsoft
Thanh_Nguyen1050 - Yes, this is by design behavior. For getting locale of the user, first user need to send the message for bot. For welcome message there is no way to get the locale of users.
Thanks,
Nivedipa
-------------------------------------------------------------------------
If the response is helpful, please click Mark as Best Response and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.- Thanh_Nguyen1050Copper ContributorThank you for quick answer.
- Nivedipa-MSFT
Microsoft
Thanh_Nguyen1050 -
Could you please share your valuable feedback via Microsoft Teams Developer Feedback link.