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 photosVideo
: Search for videosPhotoAndVideo
: Search for photos and videosDocument
: Search for documents (generic files, not including audio, video, etc.)Url
: Search for messages containing URLs and text linksGif
: Search for messages containing GIFsVoice
: Search for messages containing voice notesAudio
: Search for messages containing audio filesChatPhotoChange
: Search for chat photo changesCall
: Search for callsRound
: Search for round messages (aka video notes)RoundAndVoice
: Search for round messages (aka video notes) and voice notesMyMention
: Search for mentions of yourselfLocation
: Search for geolocationsContact
: Search for contactsPinned
: Search for pinned messages