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 rights or can_edit_messages rights in the channel

Implementation

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