You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above code leaves space for handling other types of embeds should they be added by Bluesky.
107
+
69
108
## <aname="reacting">Message reactions</a>
70
109
71
110
Bluesky allows for simple message reactions in conversations. The `MessageView` you get from `getMessages` has a `Reactions` property which is a collection of `ReactionView`. To display reactions
@@ -105,10 +144,10 @@ To start a conversation you will need the DIDs of the conversation members, whic
Copy file name to clipboardExpand all lines: src/idunno.Bluesky/Chat/BlueskyAgent.cs
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
// Licensed under the MIT License.
3
3
4
4
usingidunno.AtProto;
5
+
usingidunno.AtProto.Repo;
5
6
usingidunno.Bluesky.Chat;
6
7
usingidunno.Bluesky.RichText;
7
8
@@ -411,21 +412,30 @@ public async Task<AtProtoHttpResult<ICollection<MessageView>>> SendMessageBatch(
411
412
/// <param name="id">The conversation identifier to send the <paramref name="message"/> to.</param>
412
413
/// <param name="message">The message to send.</param>
413
414
/// <param name="extractFacets">Flag indicating whether facets should be extracted from <paramref name="message" />.</param>
415
+
/// <param name="embeddedPost">A <see cref="StrongReference"/> to a post that will be embedded in the message.</param>
414
416
/// <param name="cancellationToken">A cancellation token that can be used by other objects or threads to receive notice of cancellation.</param>
415
417
/// <returns>The task object representing the asynchronous operation.</returns>
416
418
/// <exception cref="ArgumentException">Thrown when <paramref name="id"/> is null or white space.</exception>
417
-
/// <exception cref="ArgumentNullException">Thrown when <paramref name="message"/> is null.</exception>
419
+
/// <exception cref="ArgumentNullException">Thrown when <paramref name="message"/> is null, or if <paramref name="embeddedPost"/> is specified but its collection is null.</exception>
420
+
/// <exception cref="ArgumentOutOfRangeException">Thrown when <paramref name="embeddedPost"/> is specified but it is not in the <see cref="CollectionNsid.Post"/> collection.</exception>
418
421
/// <exception cref="AuthenticationRequiredException">Thrown when the current agent is not authenticated.</exception>
0 commit comments