gpt4 book ai didi

microsoft-teams - 未获取从 MS Teams 返回的事件对象中的时区

转载 作者:行者123 更新时间:2023-12-05 07:20:00 27 4
gpt4 key购买 nike

未在从 MS Teams 返回的事件对象中获取时区...

我能够从 MS Teams 上发布的用户消息中获取事件对象,但时区为 null。我需要确定用户。

下面是事件对象。

Activity Object: {
"type": "message",
"id": "1566815985480",
"timestamp": "2019-08-26T10:39:45.5003126+00:00",
"localTimestamp": "2019-08-26T16:09:45.5003126+05:30",
"localTimezone": null,
"serviceUrl": "https://smba.trafficmanager.net/amer/",
"channelId": "msteams",
"from": {
"id": "29:14rYXH-yjWkIa0Z6jjjGWFmebOM-n4Jfoo2OfOY-ofYqAu4cvDv9CF9BV-D2oHTwjQu1LWNkv6Q7d2IlR5N2oQQ",
"name": "Anubhooti Bhatnagar (c)",
"aadObjectId": "7b9dfbc1-0add-49ac-9327-2f62b102b5d6",
"role": null
},
"conversation": {
"isGroup": null,
"conversationType": "personal",
"id": "a:12S0SAjSmD3ugQCV-ZgdRLeN6gbxJM5Xa7dfomtQWes9FOCGTyIrgPLHSjAs-08wDElyxhP5TgMant9tDqx5-G0HXE9W2gPW2vfo0aK9UDi5wS5pbhzd_wO17MIfWZTke",
"name": null,
"aadObjectId": null,
"role": null,
"tenantId": "b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0"
},
"recipient": {
"id": "28:34d3d716-049a-4363-9ade-a2fdf6fe8f5b",
"name": "GenieChatBotDev",
"aadObjectId": null,
"role": null
},
"textFormat": "plain",
"attachmentLayout": null,
"membersAdded": null,
"membersRemoved": null,
"reactionsAdded": null,
"reactionsRemoved": null,
"topicName": null,
"historyDisclosed": null,
"locale": "en-US",
"text": "hi",
"speak": null,
"inputHint": null,
"summary": null,
"suggestedActions": null,
"attachments": null,
"entities": [{
"type": "clientInfo",
"locale": "en-US",
"country": "US",
"platform": "Windows"
}],
"channelData": {
"tenant": {
"id": "b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0"
}
},
"action": null,
"replyToId": null,
"label": null,
"valueType": null,
"value": null,
"name": null,
"relatesTo": null,
"code": null,
"expiration": null,
"importance": null,
"deliveryMode": null,
"listenFor": null,
"textHighlights": null,
"semanticAction": null,
"callerId": null
}

最佳答案

这是一个我们正在处理的已知问题。同时,如果您要查找时差,则可以使用 localTimestamp 和 timestamp 值。

关于microsoft-teams - 未获取从 MS Teams 返回的事件对象中的时区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57656597/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com