chat
230 TopicsCommand Line args to goto channels directly?
Hello! So in our custom tools we try to give quick access to the responsible people. Its already possible to chat with co-workers in Teams with a click. In the background: getting the executable from `LOCALAPPDATA` + \Microsoft\Teams\current\Teams.exe works pretty reliable then just call this with `sip:name@company.com` and VoilĂ we chat! Now I'd like users to be able to goto public channels with a click. I can get a link with Get link to channel. But running Teams.exe with this link does nothing! Just opens up the Teams main window with whatever was just open. No change. I CAN just "run" this link with the webbrowser but then the user has to accept to always open the according links with MS Teams which is do-able but rather crude for some simpler users. And STILL one would have a useless web page open. Maybe the user doesn't even have a browser open... However it would be quite great to just go like: Teams.exe %channel_link% What command line switch do I need? Is there a list of command line switches? like the sip: one? I'd love to do sth like Teams.exe /? or -help ... btw: Currently there is a big fat ERROR msg when you do Teams on the console window: Error while parsing hooks JSON. Error: "ENOENT: no such file or directory, open 'C:\\Users\\techarteric\\AppData\\Roaming\\Microsoft\\Teams\\hooks.json'" (node:17212) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.Solved53KViews1like25CommentsHow to generate or create chat id of MS teams using Graph API ?
I got the list of chat Id's. I did conversation in MS teams from GET - https://graph.microsoft.com/beta/me/chats/ using graph API (Graph Explorer) Is there any way to generate chat Id with the help of user Id with whom I never chat yet.25KViews0likes5Commentsblock a message in Microsoft Teams
Now we plan to develop a data protection App for Microsoft Teams. One feature is block a message when the message includes someone keyword. Now we can use delegated permission and Teams itself http API(https://apac.msgapi.teams.microsoft.com/v1/users/ME/conversations//messages/******?behavior=softDelete) to delete the message, but it not friendly to Teams Users, We try found a better method to implement it. We found nothing but some similar production like Mcafee and Smarsh released on https://products.office.com/en-us/microsoft-teams/apps-integration-and-services they have implemented block-message function, like below picture: https://i.stack.imgur.com/kPgP8.png We asked the same question on SOF: https://stackoverflow.com/questions/58602003/how-to-block-a-message-in-microsoft-teams.Could Could someone tell us how to implement the function, Thanks very much. Another, we do remove a chat participant by the same way. Is there any track to remove a chat participant directly24KViews0likes7CommentsSend Webhooks to Teams Group Chat
Hello I recently configured Meraki Webhooks to be sent to a Teams Channel. the problem is, users spend their time in Teams Chats and rarely go into Teams Channels. I would like to know if its possible to send a webhook directly to a Teams Chat? If not what would be needed to accomplish this? I'm not quite sure where to start but if it is not possible to send a webhook directly to a Teams ChatI will direct users to start using Channels to take advantage of the webhooks. Any help appreciated. thank you.19KViews0likes5CommentsThe bot is not a part of the conversation roster error in new chat(Chat->New)
Hi, I am using Microsoft Bot Framework to create the message extension. I would like to get the user email of the customer who enters the search query in the bottom search chatbox. The email is getting correctly if we open the extension from the Teams->Chat but if we create a new chat from Chat->New Chat the email id is not getting. The following error is getting [onTurnError] unhandled error: Error: The bot is not part of the conversation roster. (node:21770) UnhandledPromiseRejectionWarning: Error: BotFrameworkAdapter.processActivity(): 500 ERROR Error: The bot is not part of the conversation roster. These are the code to get the email id export default class MessageExtension extends TeamsActivityHandler { async handleTeamsMessagingExtensionQuery(context, query) { let searchQuery = query.parameters && query.parameters[0].name === 'query' ? query.parameters[0].value : ''; const member = await this.getTeamMember(context); console.log("email="+member);}} async getSingleMember(context) { try { const member = await TeamsInfo.getMember( context, context.activity.from.id ); var email = member.email; const message = MessageFactory.text(`You are: ${member.email}`); return email } catch (e) { if (e.code === 'MemberNotFoundInConversation') { return context.sendActivity(MessageFactory.text('Member not found.')); } else { throw e; } }} What may be the reason? Is it not possible to use TeamsInfo.getMember() to get the mail id for Teams->Chat? Screenshot - Bottom search18KViews1like9CommentsIs it possible to embed Teams within my own website?
Hello, I've been reading through alot of (older) posts but I did not find a final answer to my question. I am searching for a way to embed a Teams Meeting within my website, e.g. by using an iframe (but if there is another way, I am completely open to use it). The meeting has been scheduled and the participant (who is external, i.e. has Guest Access I suppose) has to do some auth stuff on my website before he is allowed to join the meeting. I would love to put the meeting in an iframe and have some sort of interaction (e.g. popup for feedback) available on my website. I really want it on my website since I have a server next to it, storing logs of certain participant activities. In case it's important: The host of the meeting is using a teams client to host/start and interact (via chat/audio/video) with the participants. Only the participants are on my website taking part in the teams meeting (using teams chat/video/audio..). Is this possible as of today? If not, is there anything like that scheduled as a feature in the future? I've so far only found guides for the other direction (embed an iframe into a teams app into the teams client or similar) but not for embedded teams meeting in an external (non-teams) website.Solved17KViews0likes5CommentsHow do I send a message to myself with PowerAutomate?
I am developing a PowerAutomate flow, I want to use the function "post message in chat or channel", I can send messages to anyone in "one to one" private chats but not on the private chat I have with myself. Has somebody found a way to message himself via power automate? I can't create it as a "new chat" in PA because it says users cannot be duplicate. Then I figured out I had to find the ID of the chat with myself. I tried using the microsoft graph api to retrieve the id from "me/chats" but the chat with myself is not shown. I tried many different filters and expansions with no success. I also tried analyzing the id itself and discovered that, in the case of "one to one" chats, it's made of {the sender id} and {the receiver id} I then tried constructing an id that contains 19:{myuserid}_{myuserid}@{domain} but it responds that there is no record. I tried many combinations, thanks for the help.16KViews0likes2CommentsSending a message to microsoft teams bot using python
I have created a bot and subscribed it to Microsoft Teams, I have done all the configuration settings such that I am getting all the messages to my web-app from MSTeams. Following to https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-send-and-receive-messages?view=azure-bot-service-4.0documentation, I am trying to hit an Http post request to send the reply message to the same bot. But I am getting 401 i.e unauthorized error. Maybe I am not getting the correct token. could someone help me telling how can we generate the token in order to do an Http request to the MSTeams? below is the code snippet that I am using. team_message = json.loads(request.data.decode("utf-8")) conversion_id = team_message.get("conversation").get("id") activity_id = team_message.get("channelData").get("clientActivityID") service_url = team_message.get("serviceUrl") url = service_url + "/v3/conversations/{}/activities/{}".format(conversion_id, activity_id) res = requests.post(url=url, headers={"Authorization": "Bearer abcdfjkdsa")14KViews0likes1CommentStart a Teams chat or call from web application
Hi, Is it possible to initiate a Team chat or call from a custom web application/site (e.g. Salesforce)? Essentially a click to call or click to chat functionality. The use case is something like: Viewing a user's profile from the custom web application (the user also exists in Team with same email, username, etc...) Clicking on a link or button to initiate an audio or video call (or chat) with that user, and this will launch the Teams app (assuming it is installed) and make the call I searched around and some says it is not currently possible, but starting a meeting is possible. I do not see any documentation that talks about this specifically. Thanks for your help13KViews0likes1Comment