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:
fileId
ID of the file.timestamp
Timestamp of the notification to be dismissed.apiVersion
Defaults tov1
.token
oCSAPIRequest
Required 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 DynamiteRawResponse that can be serialized.
Implementation
Future<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;
}