Class SetMessageReaction

java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<SetMessageReaction, Boolean>
io.github.natanimn.telebof.requests.set.SetMessageReaction

public class SetMessageReaction extends AbstractBaseRequest<SetMessageReaction, Boolean>
SetMessageReaction class. Returns True on success.
Since:
3 March 2025
See Also:
  • Constructor Details

    • SetMessageReaction

      public SetMessageReaction(Object chat_id, int message_id, Api api)
      Required
      Parameters:
      chat_id - chat id
      message_id - message id
      api - api
  • Method Details

    • reaction

      public SetMessageReaction reaction(List<ReactionType> reaction)
      Optional
      Parameters:
      reaction - A JSON-serialized list of reaction types to set on the message. Currently, as non-premium users, bots can set up to one reaction per message. A custom emoji reaction can be used if it is either already present on the message or explicitly allowed by chat administrators. Paid reactions can't be used by bots.
      Returns:
      SetMessageReaction
    • isBig

      public SetMessageReaction isBig(boolean is_big)
      Optional
      Parameters:
      is_big - Pass True to set the reaction with a big animation
      Returns:
      SetMessageReaction