If you use Markdown, the image size defaults to 256×256. We recommend that you specify the height and width of each image by using XML. Pictures can be at most 1024×1024 MB and 1 MB in PNG, JPEG, or GIF format animated GIF isn't supported. You can find more information on attachments in the Bot Framework documentation. Pictures are sent by adding attachments to a message. You can set the optional TextFormat property to control how your message's text content is rendered.įor detailed information on how Teams supports text formatting in teams see Text formatting in bot messages.įor more information on formatting cards in messages, see Card formatting. See Message formatting for a detailed description of supported formatting in bot messages. You can set the optional TextFormat property of a message to control how your message's text content is rendered. Teams currently supports emojis via UTF-16 such as, U+1F600 for grinning face.įor more information on the types of bot interaction supported by the Bot Framework, which bots in teams are based on, see the Bot Framework documentation on conversation flow and related concepts in the documentation for the Bot Builder SDK for. See the Teams Card Reference for supported cards. Maximum 1024×1024 MB and 1 MB in PNG, JPEG, or GIF format animated GIF aren't supported. You can specify the type of content your bot can handle in the Microsoft Teams settings page for your bot. Users can send rich text and pictures to your bot. Your bot can send rich text, pictures, and cards. The Bot Builder SDK provides easy access to this API, additional functionality to manage conversation flow and state, and simple ways to incorporate cognitive services such as natural language processing (NLP). Messages are usually the same in across all scopes, but there are differences in how the bot is accessed in the UI and differences behind the scenes, which you need to know about.īasic conversation is handled through the Bot Framework Connector, a single REST API to enable your bot to communicate with Teams and other channels. For more information, see Handle bot events in Microsoft Teams. Your bot examines the message to determine its type and responds accordingly.īots also support event-style messages. When a user sends a message, Teams posts the message to your bot specifically, it sends a JSON object to your bot's messaging endpoint. Examples include:Įach message is an Activity object of type messageType: message. If a bot initiates a conversation it's called a proactive message. Most communication is in response to another message. Proactive messagesīots can participate in a conversation or initiate one. Scopes are defined and discussed further in the Manifest Reference. In order for the bot to work in a particular scope it should be listed as supporting that scope in the manifest. Bots in single user conversations don't require an - the user can just type.Bots in channel and group chat conversations require the user to the bot to invoke it in a channel.groupChat Chat between a bot and two or more users.Ī bot behaves slightly differently depending on what kind of conversation it's involved in:. personal Conversations between bots and a single user.teams Also called channel conversations, visible to all members of the channel.There are three kinds of conversations (also called scopes) in Teams: If you are looking for current documentation version 4.6 or later of the SDK, see the conversational bots section.Ī conversation is a series of messages sent between your bot and one or more users. This article is based on the v3 Bot Framework SDK.
0 Comments
Leave a Reply. |