How to handle different service URLs?

Kaivalya Choudhary 1 Reputation point


I'm developing a bot for Microsoft Teams that needs to proactively message users and proactively post messages into channels. The service URL is being stored in the database for proactive messaging, but when a user messages the bot, a different service URL is sent.

I'm based in India, so generally the service URL has always been but for the last few days the bot has been receiving and URLs in personal contexts, which I am not able to understand. This is preventing the bot from sending proactive messages because of wrong service URL stored in the database, which causes the ConnectorClient method calls to throw the error: "User is from different region".

Is this a known issue? How can this be handled better?

Also please provide more information on how my bot received 3 different service URLs in the same location.

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,535 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Nikitha-MSFT 541 Reputation points

    For each user the the service url will be different based on the region. This is by design.