setEncryptedTyping method
Future<Result<Boolean> >
setEncryptedTyping({
- required InputEncryptedChatBase peer,
- required bool typing,
Set Encrypted Typing.
ID: 791451ed
.
Implementation
Future<Result<Boolean>> setEncryptedTyping({
required InputEncryptedChatBase peer,
required bool typing,
}) async {
// Preparing the request.
final request = MessagesSetEncryptedTyping(
peer: peer,
typing: typing,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<Boolean>();
}