DeleteChatMessagesBySender constructor

const DeleteChatMessagesBySender({
  1. required int chatId,
  2. required MessageSender senderId,
})

Deletes all messages sent by the specified message sender in a chat. Supported only for supergroups; requires can_delete_messages administrator privileges

Implementation

const DeleteChatMessagesBySender({
  required this.chatId,
  required this.senderId,
});