msteams | script allows you to login into your meetings or classes | Automation library
kandi X-RAY | msteams Summary
kandi X-RAY | msteams Summary
This script allows you to login into your meetings or classes correctly, when time or time interval is provided
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of msteams
msteams Key Features
msteams Examples and Code Snippets
Community Discussions
Trending Discussions on msteams
QUESTION
I have this simple script that is working and I'm able to download a csv file From my SharePoint site but I'm just wondering how can I modify it so that I can download another file that is located in another path and save it in the same local folder as soon as the first one is complete downloading?.
Basically this is what I'm trying to do
...ANSWER
Answered 2022-Mar-29 at 05:57You've got the right code, just need to call the function twice
QUESTION
The requirement is printing the FAQ ( QnA Maker result consider as an attachment in Adaptive Card Body ) contents in MS Team Bot ( HR Bot ). The core technology that we are using is C# with ASP.NET Core, Bot Framework SDK.
FAQ Bot Example:
- User is asking payroll related details in MS Team Bot.
- The response contains payroll document details ( Embedded as URL with bold or italic ).
- All responses return as an attachment ( Adding this response in attachment in adaptivae card body and after that posting using send activity ).
- AdaptiveCard version is 1.2
It's a FAQ bot and there are no code changes happening yet for the last two weeks. All these issues were encountered after the chrome latest updates ( Chrome updates).
We have tried the following scenario for the embedded hyperlink issue.
- The Following answer hyperlink is opening on the MS-Teams app
Markdown Syntax in the QnA Maker
- The Following answer is not opening on the MS-Teams app( embedded hyperlink is changed to Bold/Italic)
Answer Markdown Syntax in the QnA Maker
Note:
- Opening MS teams bot in a Firefox Browser, then all scenarios are working.
- Opening MS teams Bot in a Chrome Browser, then the second point is not working as I mentioned above
- The detailed discussion on the same issue posted on github - expecting a quick fix because of customer need.
Enlarge Image Issue:
We are facing a similar issue mentioned in github.
...ANSWER
Answered 2022-Feb-16 at 14:41Adding answer from comment section for visibility:
We checked the embedded hyperlink issue in both Microsoft Teams Desktop client(Version 1.5.00.3276) and web client. The issue is fixed now.
QUESTION
We are trying the following payload using MSTeams Bot access Token to create the Personel chat Room with the provided topicName.
Request : POST /v3/conversations
...ANSWER
Answered 2022-Jan-22 at 16:01To create a chat with customized name you should have minimum 3 participants[Including you]. In the above request only one user is there, that is why it becomes one-one personal chat between you and Jane.
QUESTION
I'm having an issue where buttons and actions in ms teams adaptive cards won’t wrap text inside the action button. The button UI is completely broken even if we are applied " full: width"
in MS Team. I know the "Wrap: true || false"
we can add inside the adaptive card body or title of the textblock, Is there any other way to handle this type of scenario in the action button title in MS Team channel.
The following code we are using for the adaptive card implementation.
...ANSWER
Answered 2022-Jan-14 at 10:30Apart from using full width property in Adaptive card, there doesn't seem to be any way to increase the size of actionable buttons in adaptive card in order to fit the text/title properly.
QUESTION
We are facing issue on getting the user submitted input data from Adaptive card posted via MSTeams Graph API. We have a Team Channel that has two members:Global Admin and the user. We posted the following Adaptive card using Global Admin token.
...ANSWER
Answered 2022-Jan-13 at 07:35It is not possible to get Adaptive card input with subscriptions. Instead you can have a Bot having teams
as a scope in manifest, which will send an adaptive card and you can get the input from there. That is much easier.
We have sample created in c_sharp, here is the link
https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/csharp_dotnetcore
QUESTION
I want to build a Teams bot that can send proactive messages, including creating conversations even if the user has never had a conversation with the bot.
I followed the proactive sample and adapted it to send a notification as POST in the notify controller. I am able to continue a conversation, but when I try to create one, the user does not get any messages.
Here is my code to create a conversation from the notify controller:
...ANSWER
Answered 2022-Jan-06 at 18:15You can't start a conversation with a user that has never talked to your bot and when they did that you stored a conversation reference somewhere to use it when sending the proactive message.
What the proactive sample does is precisely that, store in memory the references to the conversations.
Teams assigns a user id that's unique to the bot-user relationship, so there's no way you can start a conversation even if you knew the user's active directory object id. Or at least not without using it to create the conversation reference.
Following the Proactive Sample
https://github.com/microsoft/BotBuilder-Samples/blob/95f2fa8440b4cf3f984c3f1cb82966b8b45d71e8/samples/csharp_dotnetcore/16.proactive-messages/Bots/ProactiveBot.cs#L26 That method is the one storing the conversation reference. Then the notify endpoint loops through the stored conversation references and send notifications. If your user didn't trigger that method ever, then the notify endpoint won't do anything with that user. I see that you modified the notify controller, but I'm not sure how you are getting the recipientId for a user that never talked to you.
Talking to a user for the first time, Microsoft Graph Approach.
To do that you'll need access to the Microsoft Graph API in the AAD tenant and use it to:
- Get the user
- Get the AppInstallationId if the user has installed your bot or potentially force the installation
- Use that to get the ChatId between the bot and that AppInstallation
- Use that ChatId to create the conversation reference for that user.
- Optionally store somewhere the reference to the user id and the conversation reference you created so you don't have to do all the previous steps for that user again.
Check this project out: https://github.com/microsoft/microsoft-teams-apps-company-communicator
QUESTION
It's possible to send a proactive message (=private) to the sender of a message in a teams groups chat using the next part of code:
...ANSWER
Answered 2022-Jan-05 at 07:59I don't see any problem with this approach, but I think typically you'd start a new dialog rather than continue to use the same one.
I think any code accessing state prior to the hack would be persisted under the new id when state is saved. Middleware running prior to the turn, vs after the turn completes, would have two separate conversation ids.
QUESTION
I have an authentication issue when sending requests to MS Teams from a corporate environment (with a dedicated tenant). I don't know if this is a bug or if I misuse the SDK. I already saw Teams samples provided by Microsoft but all of these run on public Azure without dedicated tenant, and I suspect my issue is somewhat related to using a dedicated tenant (having a dedicated tenant, with either a bug in SDK, either a misconfiguration somewhere in my code or in the bot manifest).
The application I'm working on is very business specific, so I made a project to reproduce issue with minimal code in this github repository: msteams-bot-auth-issue. Using this sample project requires to have a Teams bot on a dedicated tenant (I obviously cannot publish my corporate tenant details).
Basically, our application is splitted in two parts: one receives bot activities from MS Teams channel. Another processes them (first part forwards activities to the second one).
We correctly receive activities from MS Teams. But we are unable to call an MS Teams API to get Teams members in conversation (HTTP 401 with response message { "message": "Authorization has been denied for this request." }
).
Interestingly, if I use Microsoft.Bot.Connector v4.7.3 (version we actually use in our application), behavior is a bit different from Microsoft.Bot.Connector v4.15.0: in v4.7.3, no access token is requested before request to get conversation members; in v4.15.0, access token is successfully obtained, and put in request to conversation members request, but we still get an HTTP 401 response. Because we get HTTP 401 and not HTTP 403, I suppose access token is not recognized by MS Teams.
MS Teams response is always the same (HTTP 401 and error message), regardless an access token was included or not in request.
Access token request is composed of two requests:
- discovery (
GET https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=https://login.microsoftonline.com/XXX/oauth2/authorize
whereXXX
is our tenant name). - client credentials request (
POST https://login.microsoftonline.com/XXX/oauth2/authorize
whereXXX
is our tenant name).
Response contains access token, logs are showing "GetTokenAsync: Acquired token using ADAL in 876" (logs emitted by Bot Framework SDK).
Then actual conversation members request is sent with access token (with HTTP header Authorization: Bearer ...
), and response is always HTTP 401.
When I decode the JWT in https://jwt.io, I see these fields (among others):
- aud: https://api.botframework.com
- iss: https://sts.windows.net/XXX/ (where XXX is our tenant name)
- idp: https://sts.windows.net/XXX/ (where XXX is our tenant name)
- appid: YYY (where Y is our MicrosoftAppId)
Interestingly, if a set scope parameter in MicrosoftAppCredentials
class to AuthenticationConstants.ToChannelFromBotOAuthScope
, nothing changes in the JWT. So maybe access rights are not correctly setup for our application.
Maybe this is an issue with our application manifest, but I think we followed samples for MS Teams bots. permissions
field in our manifest is set to [ "identity", "messageTeamMembers" ]
.
There are lots of resources about Bot Framework and MS Teams, but I did not found any meaningful documentation for this scenario.
This may be caused by a corporate proxy, but I don't think so (I cannot guarantee it).
I precise this is an app to app authentication, also sometimes described as "regular bot scenario" (no user authentication involved here).
...ANSWER
Answered 2021-Dec-28 at 08:42Thanks to @StevenKanberg comment, the issue is resolved and was related to a corporate proxy and to tenant restriction feature.
Here are my observations:
Even if we use a corporate MS Teams tenant, we must not authenticate to this tenant. I don't really understand why, but we have to authenticate to MS Teams directly. So when instantiating MicrosoftAppCredentials
, argument ChannelAuthTenant
must not be set (meaning default tenant "botframework.com" will be used). Curiously, authentication worked with our tenant id, but access token was not usable/recognized by MS Teams (error 401 returned by MS Teams). With default tenant, and without proper tenant restrictions feature configuration, we could not authenticate in the first place (also with a more explicit error returned by MS Teams regarding tenant).
QUESTION
I am sending an adaptive card to teams with the bot framework. That is working fine. The card should contain an action that opens a task module like explained here.
My code for the card looks like this:
...ANSWER
Answered 2021-Oct-14 at 16:29This might relate to how the platform is reading your json - the "" characters for example might not be handled properly on the desktop. To solve this, rather leave the json conversion up to the platform and, for your example in C#, create a strong type instead. The example you link to does exactly that - see this line:
QUESTION
ANSWER
Answered 2021-Nov-05 at 14:52For more visibility, adding answer here from comment section: The fix should be rolling through the rings, so the change should manifest in public clients in a couple of weeks.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install msteams
You can use msteams like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page