• Normalize an InputMediaLike to InputMedia, uploading the file if needed.

    Parameters

    • client: ITelegramClient
    • media: InputMediaLike
    • params: {
          businessConnectionId?: string;
          progressCallback?: (uploaded: number, total: number) => void;
          uploadPeer?: TypeInputPeer;
      } = {}
    • uploadMedia: boolean = false

    Returns Promise<tl.TypeInputMedia>