> For the complete documentation index, see [llms.txt](https://blog.telegram.lvivcenter.org/tg-research/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://blog.telegram.lvivcenter.org/tg-research/filters/filters-basics.md).

# Basic Information about Filters

{% embed url="<https://app.guideflow.com/player/qp7z276sjk>" fullWidth="true" %}

Before we move on to filters, we suggest you familiarize yourself with the main features of working with them:

* A system of logical operators `OR` and `AND` is applied in each filter. By default, the `AND` operator is in effect, combining all selected search queries. For example, with the filters "Country" > "Ukraine" `AND` "Poland" enabled, the results will display messages that mention both countries. By changing the operator from `AND` to `OR` in the lower right corner of the filter, the results will display messages that mention one `or` more countries.

<div data-full-width="true"><figure><img src="https://4057032691-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBXsjyjPtXJoWAZOCJBDW%2Fuploads%2FITAunVTiruXAPEkrqoRr%2F1.png?alt=media&amp;token=fde35dd2-4ad3-47c7-a4a2-dcb072c7b6bb" alt=""><figcaption></figcaption></figure></div>

* All selected filters are displayed at the top of the search results. This allows you to see which filters are active and easily disable them.

<div data-full-width="true"><figure><img src="https://4057032691-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBXsjyjPtXJoWAZOCJBDW%2Fuploads%2FX7SKHMv5G9ytLjHbvCT7%2F2.png?alt=media&amp;token=725a154f-d208-4e37-9095-af07bbb2ad5b" alt=""><figcaption></figcaption></figure> <figure><img src="https://4057032691-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBXsjyjPtXJoWAZOCJBDW%2Fuploads%2FZT3qhvDZ4W6XEJmosfQq%2F3.png?alt=media&amp;token=1041e4c6-ae34-44a3-bd46-4f9d8a79035e" alt=""><figcaption></figcaption></figure></div>

* Next to each item in the filter panel, the number of messages corresponding to that item is displayed. For example, this could be the number of messages with a specific hashtag or those published by a particular author. These numeric indicators may change if the search parameters are adjusted.

<figure><img src="https://4057032691-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBXsjyjPtXJoWAZOCJBDW%2Fuploads%2FTRq4nH5sPcJGvT8RTHnT%2F4.png?alt=media&amp;token=33805559-a532-4dd4-8393-6ae28376106b" alt="" width="375"><figcaption></figcaption></figure>

* Since the list in some filters can be too long, each has a <img src="https://4057032691-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBXsjyjPtXJoWAZOCJBDW%2Fuploads%2FqtiE7fwFJae0FccIqOeW%2F5.png?alt=media&amp;token=7dde0ccd-491e-437b-be9b-48c4ac0d08e8" alt="" data-size="line"> button. You can view the entire list using this button and find the items you need by name. The display order can be sorted alphabetically (the<img src="https://4057032691-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBXsjyjPtXJoWAZOCJBDW%2Fuploads%2FB63ifLSSgtEvaRmeaju9%2F6.png?alt=media&amp;token=0448b3c5-6cab-48f1-a505-1a06affa0223" alt="" data-size="line">button) or by the number of messages (the<img src="https://4057032691-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBXsjyjPtXJoWAZOCJBDW%2Fuploads%2F1XnkOk46TNozQTAcROUW%2F7.png?alt=media&amp;token=58779efb-0c7c-49d6-9991-f86779d1eebc" alt="" data-size="line">button).

<figure><img src="https://4057032691-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBXsjyjPtXJoWAZOCJBDW%2Fuploads%2F5gsaYBalDBVhEpJGvzFJ%2F8.png?alt=media&amp;token=15b9ef1f-9134-4fb7-9487-95f68368c2a9" alt="" width="375"><figcaption></figcaption></figure>
