Documentation - v0.27.1
    Preparing search index...
    • Filter messages containing media of given type

      Type Parameters

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

      Parameters

      • type: T

      Returns filters.UpdateFilter<
          Message,
          {
              media: | Extract<Document, { type: T }>
              | Extract<Photo, { type: T }>
              | Extract<Video, { type: T }>
              | Extract<Audio, { type: T }>
              | Extract<Sticker, { type: T }>
              | Extract<Voice, { type: T }>
              | Extract<Contact, { type: T }>
              | Extract<Dice, { type: T }>
              | Extract<Game, { type: T }>
              | Extract<Location, { type: T }>
              | Extract<LiveLocation, { type: T }>
              | Extract<Venue, { type: T }>
              | Extract<PaidMedia, { type: T }>
              | Extract<WebPageMedia, { type: T }>
              | Extract<Poll, { type: T }>
              | Extract<Invoice, { type: T }>
              | Extract<MediaStory, { type: T }>
              | Extract<TodoList, { type: T }>;
          },
      >