SearchFilters: {
    Audio: { _: "inputMessagesFilterMusic" };
    Call: { _: "inputMessagesFilterPhoneCalls" };
    ChatPhotoChange: { _: "inputMessagesFilterChatPhotos" };
    Contact: { _: "inputMessagesFilterContacts" };
    Document: { _: "inputMessagesFilterDocument" };
    Empty: { _: "inputMessagesFilterEmpty" };
    Gif: { _: "inputMessagesFilterGif" };
    Location: { _: "inputMessagesFilterGeo" };
    MyMention: { _: "inputMessagesFilterMyMentions" };
    Photo: { _: "inputMessagesFilterPhotos" };
    PhotoAndVideo: { _: "inputMessagesFilterPhotoVideo" };
    Pinned: { _: "inputMessagesFilterPinned" };
    Round: { _: "inputMessagesFilterRoundVideo" };
    RoundAndVoice: { _: "inputMessagesFilterRoundVoice" };
    Url: { _: "inputMessagesFilterUrl" };
    Video: { _: "inputMessagesFilterVideo" };
    Voice: { _: "inputMessagesFilterVoice" };
} = ...

Search filters to be used in TelegramClient.searchMessages and TelegramClient.searchGlobal.

Note that due to Telegram API limitations, you can't combine filters, and can only use a limited pre-defined set.

This object simply exports static TL objects for convenience, if it does not expose something, simply pass a TL object directly.

  • Empty: Search for all messages (used by default)
  • Photo: Search for photos
  • Video: Search for videos
  • PhotoAndVideo: Search for photos and videos
  • Document: Search for documents (generic files, not including audio, video, etc.)
  • Url: Search for messages containing URLs and text links
  • Gif: Search for messages containing GIFs
  • Voice: Search for messages containing voice notes
  • Audio: Search for messages containing audio files
  • ChatPhotoChange: Search for chat photo changes
  • Call: Search for calls
  • Round: Search for round messages (aka video notes)
  • RoundAndVoice: Search for round messages (aka video notes) and voice notes
  • MyMention: Search for mentions of yourself
  • Location: Search for geolocations
  • Contact: Search for contacts
  • Pinned: Search for pinned messages

Type declaration

  • ReadonlyAudio: { _: "inputMessagesFilterMusic" }
  • ReadonlyCall: { _: "inputMessagesFilterPhoneCalls" }
  • ReadonlyChatPhotoChange: { _: "inputMessagesFilterChatPhotos" }
  • ReadonlyContact: { _: "inputMessagesFilterContacts" }
  • ReadonlyDocument: { _: "inputMessagesFilterDocument" }
  • ReadonlyEmpty: { _: "inputMessagesFilterEmpty" }
  • ReadonlyGif: { _: "inputMessagesFilterGif" }
  • ReadonlyLocation: { _: "inputMessagesFilterGeo" }
  • ReadonlyMyMention: { _: "inputMessagesFilterMyMentions" }
  • ReadonlyPhoto: { _: "inputMessagesFilterPhotos" }
  • ReadonlyPhotoAndVideo: { _: "inputMessagesFilterPhotoVideo" }
  • ReadonlyPinned: { _: "inputMessagesFilterPinned" }
  • ReadonlyRound: { _: "inputMessagesFilterRoundVideo" }
  • ReadonlyRoundAndVoice: { _: "inputMessagesFilterRoundVoice" }
  • ReadonlyUrl: { _: "inputMessagesFilterUrl" }
  • ReadonlyVideo: { _: "inputMessagesFilterVideo" }
  • ReadonlyVoice: { _: "inputMessagesFilterVoice" }