Jul 13 2022 02:40 AM - edited Jul 13 2022 03:44 AM
In manifest version 1.11 , added the permission for Channel message in webApplicationInfo
"webApplicationInfo": {
"id": "appID",
"resource": "https://AnyString",
"applicationPermissions": [
"ChannelMessage.Read.Group"
]
}
Once after switching to version 1.12 , we have changed the config to
"webApplicationInfo": {
"id": "appID",
"resource": "https://AnyString"
},
"authorization": {
"permissions": {
"resourceSpecific": [
{
"type": "Application",
"name": "ChannelMessage.Read.Group"
}
]
}
but events are not triggering anymore
Jul 13 2022 03:50 AM
@Lakshmi_145 - Could you please provide the sample you are referring to along with the repro steps so that we can try out once from our end?
Jul 13 2022 05:31 AM
We have tried the below Config by changing Version to 1.12 and adding the permission for Channel Message.
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.12/MicrosoftTeams.schema.json",
"manifestVersion": "1.12",
"version": "[MS_TEAMS_APP_BUILD_NUMBER]",
"id": "[MS_TEAMS_APP_ID]",
"developer": {
"name": "[NAME]",
"websiteUrl": "[URL]",
"privacyUrl": "[PRIVACY_URL]",
"termsOfUseUrl": "[TOS_URL]"
},
"name": {
"short": "[MS_TEAMS_APP_NAME]"
},
"description": {
"short": "Teams",
"full": "[MS_TEAMS_APP_LONG_DESC]"
},
"icons": {
"color": "color.png",
"outline": "outline.png"
},
"accentColor": "#FFFFFF",
"bots": [
{
"botId": "[MS_BOT_ID]",
"scopes": ["groupchat"],
"isNotificationOnly": false
}
],
"webApplicationInfo": {
"id": "[MS_BOT_ID]",
"resource": "https://RscPermission"
},
"configurableTabs": [
{
"configurationUrl": "[CLIENT_BASE_URL]/config",
"scopes": ["groupchat"],
"context": [
"meetingSidePanel",
"meetingStage",
"meetingChatTab",
"meetingDetailsTab"
]
}
],
"authorization": {
"permissions": {
"resourceSpecific": [
{
"type": "Application",
"name": "ChannelMessage.Read.Group"
}
]
}
}
}
Jul 14 2022 01:36 AM
@Lakshmi_145 - Could you please share the sample repo which you are referring to?
Jul 14 2022 02:17 AM
We have configured the Team manifest file with with the ChannelMessage.Read.Group permission specified in the authorization property.
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.12/MicrosoftTeams.schema.json",
"manifestVersion": "1.12",
"version": "[MS_TEAMS_APP_BUILD_NUMBER]",
"id": "[MS_TEAMS_APP_ID]",
"developer": {
"name": "[NAME]",
"websiteUrl": "[URL]",
"privacyUrl": "[PRIVACY_URL]",
"termsOfUseUrl": "[TOS_URL]"
},
"name": {
"short": "[MS_TEAMS_APP_NAME]"
},
"description": {
"short": "Teams",
"full": "[MS_TEAMS_APP_LONG_DESC]"
},
"icons": {
"color": "color.png",
"outline": "outline.png"
},
"accentColor": "#FFFFFF",
"bots": [
{
"botId": "[MS_BOT_ID]",
"scopes": ["groupchat"],
"isNotificationOnly": false
}
],
"webApplicationInfo": {
"id": "[MS_BOT_ID]",
"resource": "https://RscPermission"
},
"configurableTabs": [
{
"configurationUrl": "[CLIENT_BASE_URL]/config",
"scopes": ["groupchat"],
"context": [
"meetingSidePanel",
"meetingStage",
"meetingChatTab",
"meetingDetailsTab"
]
}
],
"authorization": {
"permissions": {
"resourceSpecific": [
{
"type": "Application",
"name": "ChannelMessage.Read.Group"
}
]
}
}
}
Still events are not triggered while sending messages
Jul 15 2022 12:54 AM - edited Jul 15 2022 05:43 AM
Solution@Lakshmi_145 - Please refer this sample which seems to be working fine and has been updated to v1.11 recently. Microsoft-Teams-Samples/samples/bot-receive-channel-messages-withRSC/nodejs/appPackage at main · Off...
FYI ,This feature is currently available in Public Developer Preview only.
Please check this in Public Developer Preview
Reference doc:
https://docs.microsoft.com/en-us/microsoftteams/platform/resources/dev-preview/developer-preview-int...
Also refer: Receive all channel messages with RSC - Teams | Microsoft Docs
Jul 15 2022 12:54 AM - edited Jul 15 2022 05:43 AM
Solution@Lakshmi_145 - Please refer this sample which seems to be working fine and has been updated to v1.11 recently. Microsoft-Teams-Samples/samples/bot-receive-channel-messages-withRSC/nodejs/appPackage at main · Off...
FYI ,This feature is currently available in Public Developer Preview only.
Please check this in Public Developer Preview
Reference doc:
https://docs.microsoft.com/en-us/microsoftteams/platform/resources/dev-preview/developer-preview-int...
Also refer: Receive all channel messages with RSC - Teams | Microsoft Docs