shareToChat method
Share the recorded file to the chat.
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers.
Throws a DynamiteApiException if the API call does not return an expected status code.
Parameters:
fileIdID of the file.timestampTimestamp of the notification to be dismissed.apiVersionDefaults tov1.tokenoCSAPIRequestRequired to be true for the API request to pass. Defaults totrue.
Status codes:
- 200: Recording shared to chat successfully
- 400: Sharing recording to chat is not possible
See:
- shareToChatRaw for an experimental operation that returns a
DynamiteRawResponsethat can be serialized.
Implementation
Future<_i1.DynamiteResponse<RecordingShareToChatResponseApplicationJson, void>> shareToChat({
required int fileId,
required int timestamp,
required String token,
RecordingShareToChatApiVersion? apiVersion,
bool? oCSAPIRequest,
}) async {
final rawResponse = shareToChatRaw(
fileId: fileId,
timestamp: timestamp,
token: token,
apiVersion: apiVersion,
oCSAPIRequest: oCSAPIRequest,
);
return rawResponse.future;
}