waitToEndVideoChat method
Wait for a video chat to end.
Possibly returns null
if the listener has been cancelled before
it completes. Otherwise, returns a Context object with the incoming update.
Implementation
Future<Context?> waitToEndVideoChat({
required ID chatId,
Duration? timeout,
bool clearUnfulfilled = true,
}) async {
return await waitFor(
chatId: chatId,
filter: (up) => up.message?.videoChatEnded != null,
timeout: timeout,
handlerName: "videoChatEnded",
clearUnfulfilled: clearUnfulfilled,
);
}