setTyping method
Future<Result<Boolean> >
setTyping({
- required InputPeerBase peer,
- int? topMsgId,
- 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>();
}