• Filter messages containing media of given type

    Type Parameters

    • T extends
          | "photo"
          | "location"
          | "contact"
          | "document"
          | "game"
          | "invoice"
          | "poll"
          | "video"
          | "voice"
          | "webpage"
          | "story"
          | "sticker"
          | "audio"
          | "dice"
          | "live_location"
          | "venue"
          | "paid"

    Parameters

    • type: T

    Returns UpdateFilter<Message, {
        media: Extract<Message["media"], {
            type: T;
        }>;
    }>