Class PinChatMessage

java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<PinChatMessage, Boolean>
io.github.natanimn.telebof.requests.pin_and_unpin.PinChatMessage

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

    • PinChatMessage

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

    • disableNotification

      public PinChatMessage disableNotification(boolean disable_notification)
      Optional
      Parameters:
      disable_notification - Pass True if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats.
      Returns:
      PinChatMessage
    • businessConnectionId

      public PinChatMessage businessConnectionId(String business_connection_id)
      Optional
      Parameters:
      business_connection_id - Unique identifier of the business connection on behalf of which the message will be pinned
      Returns:
      PinChatMessage