setTyping method

Future<Result<Boolean>> setTyping({
  1. required InputPeerBase peer,
  2. int? topMsgId,
  3. required SendMessageActionBase action,
})

Set Typing.

ID: 58943ee2.

Implementation

Future<Result<Boolean>> setTyping({
  required InputPeerBase peer,
  int? topMsgId,
  required SendMessageActionBase action,
}) async {
  // Preparing the request.
  final request = MessagesSetTyping(
    peer: peer,
    topMsgId: topMsgId,
    action: action,
  );

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._to<Boolean>();
}