sendMessage method
Future<XRPCResponse<MessageView> >
sendMessage({
- required String convoId,
- required MessageInput message,
- Map<
String, String> ? $unknown, - Map<
String, String> ? $headers, - PostClient? $client,
Implementation
Future<XRPCResponse<MessageView>> sendMessage({
required String convoId,
required MessageInput message,
Map<String, String>? $unknown,
Map<String, String>? $headers,
PostClient? $client,
}) async =>
await _ctx.post<MessageView>(
ns.chatBskyConvoSendMessage,
headers: $headers,
body: {
'convoId': convoId,
'message': message.toJson(),
...?$unknown,
},
to: const MessageViewConverter().fromJson,
client: $client,
);