Bot Framework provides the most comprehensive experience for building conversation applications.
7.47k
stars
2.44k
forks
source link
Getting same team and channel id in channelData provided in context for message extension #6553
Closed
arunagga closed 1 year ago
Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Version
v4.14.0
Describe the bug
If a user submit action command from message extension in the teams channel then in the context passed to handler "handleTeamsMessagingExtensionFetchTask" we are getting the same channel and team id. How is it possible that both of them are same. Context i am getting
{ "_respondedRef": { "responded": false }, "_turnState": { "turn": { "locale": "en-GB" } }, "_onSendActivities": [], "_onUpdateActivity": [], "_onDeleteActivity": [], "_turn": "turn", "_locale": "locale", "bufferedReplyActivities": [], "_adapter": { "middleware": { "middleware": [ null ] }, "settings": { "appId": "fe1ab7ee-5306-4d96-a530-2b264b046da2", "appPassword": "nWO8Q~DeErDS~iW6YRg96Kf3SYxb2ufJcjifxbql" }, "credentials": { "refreshingToken": null, "appId": "fe1ab7ee-5306-4d96-a530-2b264b046da2", "_tenant": "botframework.com", "_oAuthEndpoint": "https://login.microsoftonline.com/botframework.com", "authenticationContext": { "_authority": { "_log": null, "_url": { "protocol": "https:", "slashes": true, "auth": null, "host": "login.microsoftonline.com", "port": null, "hostname": "login.microsoftonline.com", "hash": null, "search": null, "query": null, "pathname": "/botframework.com", "path": "/botframework.com", "href": "https://login.microsoftonline.com/botframework.com" }, "_validated": false, "_host": "login.microsoftonline.com", "_tenant": "botframework.com", "_authorizationEndpoint": null, "_tokenEndpoint": null, "_deviceCodeEndpoint": null, "_isAdfsAuthority": false, "aadApiVersion": "1.5" }, "_oauth2client": null, "_correlationId": null, "_callContext": { "options": {} }, "_cache": { "_entries": [] }, "_tokenRequestWithUserCode": {} }, "_oAuthScope": "https://api.botframework.com/", "tokenCacheKey": "fe1ab7ee-5306-4d96-a530-2b264b046da2https://api.botframework.com-cache/", "appPassword": "nWO8Q~DeErDS~iW6YRg96Kf3SYxb2ufJcjifxbql" }, "credentialsProvider": { "appId": "fe1ab7ee-5306-4d96-a530-2b264b046da2", "appPassword": "nWO8Q~DeErDS~iW6YRg96Kf3SYxb2ufJcjifxbql" }, "isEmulatingOAuthCards": false, "authConfiguration": { "requiredEndorsements": [] } }, "_activity": { "name": "composeExtension/fetchTask", "type": "invoke", "timestamp": "2022-11-17T07:31:23.764Z", "localTimestamp": "2022-11-17T07:31:23.764Z", "id": "f:23925b69-3fbd-0787-9e6b-48abcd452e1d", "channelId": "msteams", "serviceUrl": "https://smba.trafficmanager.net/amer/", "from": { "id": "29:1RrXKOWlBTb-P6ZIyWBgOcZFo4v0FvHPi9sgszFH-RaPsUCQT7GjB-GqMe52hsOzCxRzlhs-s7fwatadvXKU7kA", "name": "Arun User1", "aadObjectId": "795f56ea-d505-4ab1-b771-416a4344607a" }, "conversation": { "isGroup": true, "conversationType": "channel", "tenantId": "a102ac9e-7000-40ac-a36f-cdb17aba3ca9", "id": "19:ymR93NMS27WwCIwt2QUBlU0icIo-1ak6D8y6DRzc5_w1@thread.tacv2" }, "recipient": { "id": "28:fe1ab7ee-5306-4d96-a530-2b264b046da2", "name": "msteams-local-debug" }, "entities": [ { "locale": "en-GB", "country": "GB", "platform": "Web", "timezone": "Asia/Calcutta", "type": "clientInfo" } ], "channelData": { "channel": { "id": "19:ymR93NMS27WwCIwt2QUBlU0icIo-1ak6D8y6DRzc5_w1@thread.tacv2" }, "team": { "id": "19:ymR93NMS27WwCIwt2QUBlU0icIo-1ak6D8y6DRzc5_w1@thread.tacv2" }, "tenant": { "id": "a102ac9e-7000-40ac-a36f-cdb17aba3ca9" }, "source": { "name": "compose" } }, "value": { "commandId": "giveFeedback", "commandContext": "compose", "requestId": "0da517c502af49fe8738b5300d612338", "context": { "theme": "default" } }, "locale": "en-GB", "localTimezone": "Asia/Calcutta", "rawTimestamp": "2022-11-17T07:31:23.764Z", "rawLocalTimestamp": "2022-11-17T13:01:23.764+05:30", "callerId": "urn:botframework:azure" } }
To Reproduce
Steps to reproduce the behavior:
Expected behavior
As per docs example team id is always given in Guid format but here we are not getting one
Screenshots
Additional context
Add any other context about the problem here.
Tracking Status
Dotnet SDK [TODO]()
Javascript SDK [TODO]()
Python SDK [TODO]()
Java SDK [TODO]()
Samples [TODO]()
Docs [TODO]()
Tools [TODO]()