chatBskyConvoSendMessage function
Future<XRPCResponse<MessageView> >
chatBskyConvoSendMessage({
- required String convoId,
- required MessageInput message,
- required ServiceContext $ctx,
- String? $service,
- Map<
String, String> ? $headers, - Map<
String, String> ? $unknown,
Sends a message to a conversation.
Implementation
Future<XRPCResponse<MessageView>> chatBskyConvoSendMessage({
required String convoId,
required MessageInput message,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.post(
ns.chatBskyConvoSendMessage,
service: $service,
headers: {'Content-type': 'application/json', ...?$headers},
body: {
...?$unknown,
'convoId': convoId,
'message': const MessageInputConverter().toJson(message),
},
to: const MessageViewConverter().fromJson,
);