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 chatId, int messageId, Api api)
      Required
      Parameters:
      chatId - chat id
      messageId - message id
      api - api
  • Method Details

    • disableNotification

      public PinChatMessage disableNotification(boolean disableNotification)
      Optional
      Parameters:
      disableNotification - 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 businessConnectionId)
      Optional
      Parameters:
      businessConnectionId - Unique identifier of the business connection on behalf of which the message will be pinned
      Returns:
      PinChatMessage