• Set a new chat photo or video.

    You must be an administrator and have the appropriate permissions.

    Parameters

    • client: ITelegramClient
    • params: {
          chatId: InputPeerLike;
          media: InputFileLike;
          previewSec?: number;
          type: "photo" | "video";
      }
      • chatId: InputPeerLike

        Chat ID or username

      • media: InputFileLike

        Input media file

      • OptionalpreviewSec?: number

        When type = video, timestamp in seconds which will be shown as a static preview.

      • type: "photo" | "video"

        Media type (photo or video)

    Returns Promise<void>