Variable SearchFiltersConst

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