@@ -4,7 +4,7 @@ description: Get Teams specific context for your bot, fetch user profile, get si
44ms.topic : conceptual
55ms.localizationpriority : high
66ms.owner : angovil
7- ms.date : 03/31 /2026
7+ ms.date : 04/06 /2026
88---
99# Get Teams specific context for your bot
1010
@@ -18,6 +18,8 @@ The following sample code is used for fetching the roster:
1818
1919# [ C#] ( #tab/dotnet )
2020
21+ * [ SDK reference] ( /microsoftteams/platform/teams-sdk/essentials/api?pivots=csharp )
22+
2123``` csharp
2224app .OnMessage (async context =>
2325{
@@ -30,6 +32,8 @@ app.OnMessage(async context =>
3032
3133# [ TypeScript] ( #tab/typescript )
3234
35+ * [ SDK reference] ( /microsoftteams/platform/teams-sdk/essentials/api?pivots=typescript )
36+
3337``` typescript
3438app .on (' message' , async ({ activity , api }) => {
3539 const conversationId = activity .conversation .id ;
@@ -41,6 +45,8 @@ app.on('message', async ({ activity, api }) => {
4145
4246# [ Python] ( #tab/python )
4347
48+ * [ SDK reference] ( /microsoftteams/platform/teams-sdk/essentials/api?pivots=python )
49+
4450``` python
4551@app.on_message
4652async def handle_message (ctx : ActivityContext[MessageActivity]):
@@ -103,6 +109,8 @@ The following sample code is used to get single member details:
103109
104110# [ C#] ( #tab/dotnet )
105111
112+ * [ SDK reference] ( /microsoftteams/platform/teams-sdk/essentials/api?pivots=csharp )
113+
106114``` csharp
107115app .OnMessage (async context =>
108116{
@@ -116,6 +124,8 @@ app.OnMessage(async context =>
116124
117125# [ TypeScript] ( #tab/typescript )
118126
127+ * [ SDK reference] ( /microsoftteams/platform/teams-sdk/essentials/api?pivots=typescript )
128+
119129``` typescript
120130app .on (' message' , async ({ activity , api }) => {
121131 const conversationId = activity .conversation .id ;
@@ -128,6 +138,8 @@ app.on('message', async ({ activity, api }) => {
128138
129139# [ Python] ( #tab/python )
130140
141+ * [ SDK reference] ( /microsoftteams/platform/teams-sdk/essentials/api?pivots=python )
142+
131143``` python
132144@app.on_message
133145async def handle_message (ctx : ActivityContext[MessageActivity]):
@@ -186,6 +198,8 @@ The following sample code is used to get team's details:
186198
187199# [ C#] ( #tab/dotnet )
188200
201+ * [ SDK reference] ( /microsoftteams/platform/teams-sdk/essentials/api?pivots=csharp )
202+
189203``` csharp
190204app .OnMessage (async context =>
191205{
@@ -206,6 +220,8 @@ app.OnMessage(async context =>
206220
207221# [ TypeScript] ( #tab/typescript )
208222
223+ * [ SDK reference] ( /microsoftteams/platform/teams-sdk/essentials/api?pivots=typescript )
224+
209225``` typescript
210226app .on (' message' , async ({ activity , api , send }) => {
211227 const teamId = activity .channelData ?.team ?.id ;
@@ -222,6 +238,8 @@ app.on('message', async ({ activity, api, send }) => {
222238
223239# [ Python] ( #tab/python )
224240
241+ * [ SDK reference] ( /microsoftteams/platform/teams-sdk/essentials/api?pivots=python )
242+
225243``` python
226244@app.on_message
227245async def handle_message (ctx : ActivityContext[MessageActivity]):
@@ -267,6 +285,8 @@ The following sample code is used to get the list of channels in a team:
267285
268286# [ C#] ( #tab/dotnet )
269287
288+ * [ SDK reference] ( /microsoftteams/platform/teams-sdk/essentials/api?pivots=csharp )
289+
270290``` csharp
271291app .OnMessage (async context =>
272292{
@@ -283,6 +303,8 @@ app.OnMessage(async context =>
283303
284304# [ TypeScript] ( #tab/typescript )
285305
306+ * [ SDK reference] ( /microsoftteams/platform/teams-sdk/essentials/api?pivots=typescript )
307+
286308``` typescript
287309app .on (' message' , async ({ activity , api , send }) => {
288310 const teamId = activity .channelData ?.team ?.id ;
@@ -297,6 +319,8 @@ app.on('message', async ({ activity, api, send }) => {
297319
298320# [ Python] ( #tab/python )
299321
322+ * [ SDK reference] ( /microsoftteams/platform/teams-sdk/essentials/api?pivots=python )
323+
300324``` python
301325@app.on_message
302326async def handle_message (ctx : ActivityContext[MessageActivity]):
0 commit comments