sendReaction method

Future<Result<UpdatesBase>> sendReaction({
  1. required bool addToRecent,
  2. required InputPeerBase peer,
  3. required int storyId,
  4. 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>();
}