sendReaction method
Future<Result<UpdatesBase> >
sendReaction({
- required bool addToRecent,
- required InputPeerBase peer,
- required int storyId,
- required ReactionBase reaction,
Send Reaction.
ID: 7fd736b2
.
Implementation
Future<Result<UpdatesBase>> sendReaction({
required bool addToRecent,
required InputPeerBase peer,
required int storyId,
required ReactionBase reaction,
}) async {
// Preparing the request.
final request = StoriesSendReaction(
addToRecent: addToRecent,
peer: peer,
storyId: storyId,
reaction: reaction,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<UpdatesBase>();
}