• Delete all messages of a user (or channel) in a supergroup

    Parameters

    • client: ITelegramClient
    • params: { chatId: InputPeerLike; participantId: InputPeerLike; shouldDispatch?: true }
      • chatId: InputPeerLike

        Chat ID

      • participantId: InputPeerLike

        User/channel ID whose messages to delete

      • OptionalshouldDispatch?: true

        Whether to dispatch the updates that will be generated by this call. Doesn't follow disableNoDispatch

    Returns Promise<void>