Class PinChatMessage
java.lang.Object
io.github.natanimn.telebof.requests.AbstractBaseRequest<PinChatMessage,Boolean>
io.github.natanimn.telebof.requests.pin_and_unpin.PinChatMessage
PinChatMessage class. Returns True on success.
- Since:
- 3 March 2025
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbusinessConnectionId(String businessConnectionId) OptionaldisableNotification(boolean disableNotification) OptionalMethods inherited from class io.github.natanimn.telebof.requests.AbstractBaseRequest
exec
-
Constructor Details
-
PinChatMessage
Required- Parameters:
chatId- chat idmessageId- message idapi- api
-
-
Method Details
-
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
Optional- Parameters:
businessConnectionId- Unique identifier of the business connection on behalf of which the message will be pinned- Returns:
PinChatMessage
-