PinChatMessage constructor

const PinChatMessage({
  1. required int chatId,
  2. required int messageId,
  3. required bool disableNotification,
  4. required bool onlyForSelf,
})

Pins a message in a chat; requires can_pin_messages member right if the chat is a basic group or supergroup, or can_edit_messages administrator right if the chat is a channel

Implementation

const PinChatMessage({
  required this.chatId,
  required this.messageId,
  required this.disableNotification,
  required this.onlyForSelf,
});