MessagesFilter

class hydrogram.enums.MessagesFilter[source]

Messages filter enumeration used in search_messages() and search_global()

EMPTY = <class 'hydrogram.raw.types.input_messages_filter_empty.InputMessagesFilterEmpty'>

Empty filter (any kind of messages)

PHOTO = <class 'hydrogram.raw.types.input_messages_filter_photos.InputMessagesFilterPhotos'>

Photo messages

VIDEO = <class 'hydrogram.raw.types.input_messages_filter_video.InputMessagesFilterVideo'>

Video messages

PHOTO_VIDEO = <class 'hydrogram.raw.types.input_messages_filter_photo_video.InputMessagesFilterPhotoVideo'>

Photo and video messages

DOCUMENT = <class 'hydrogram.raw.types.input_messages_filter_document.InputMessagesFilterDocument'>

Document messages

URL = <class 'hydrogram.raw.types.input_messages_filter_url.InputMessagesFilterUrl'>

Messages containing URLs

ANIMATION = <class 'hydrogram.raw.types.input_messages_filter_gif.InputMessagesFilterGif'>

Animation messages

VOICE_NOTE = <class 'hydrogram.raw.types.input_messages_filter_voice.InputMessagesFilterVoice'>

Voice note messages

VIDEO_NOTE = <class 'hydrogram.raw.types.input_messages_filter_round_video.InputMessagesFilterRoundVideo'>

Video note messages

AUDIO_VIDEO_NOTE = <class 'hydrogram.raw.types.input_messages_filter_round_video.InputMessagesFilterRoundVideo'>

Audio and video note messages

AUDIO = <class 'hydrogram.raw.types.input_messages_filter_music.InputMessagesFilterMusic'>

Audio messages (music)

CHAT_PHOTO = <class 'hydrogram.raw.types.input_messages_filter_chat_photos.InputMessagesFilterChatPhotos'>

Chat photo messages

PHONE_CALL = <class 'hydrogram.raw.types.input_messages_filter_phone_calls.InputMessagesFilterPhoneCalls'>

Phone call messages

MENTION = <class 'hydrogram.raw.types.input_messages_filter_my_mentions.InputMessagesFilterMyMentions'>

Messages containing mentions

LOCATION = <class 'hydrogram.raw.types.input_messages_filter_geo.InputMessagesFilterGeo'>

Location messages

CONTACT = <class 'hydrogram.raw.types.input_messages_filter_contacts.InputMessagesFilterContacts'>

Contact messages

PINNED = <class 'hydrogram.raw.types.input_messages_filter_pinned.InputMessagesFilterPinned'>

Pinned messages