Search code examples
azureazure-active-directorybotframeworkmicrosoft-teams

Service URL for Notification-Only Teams Bot


I am working on a notification only teams bot limited to members of a single azure ad tenant. Based on this documentation - https://learn.microsoft.com/en-us/microsoftteams/platform/resources/bot-v3/bots-context - the serviceUrl could change.

Since the bot would hardly ever receive a request, how do I manage the serviceUrl? What could cause the serviceUrl to change?


Solution

  • Service URL are unique to region, not tenant.

    You can cache the team and user details when bot is added to a team in conversation update bot event. You could use it later to send messages.