--- title: searchMessagesFilterChatPhoto description: Return only messages containing chat photos --- ## Constructor: searchMessagesFilterChatPhoto [Back to constructors index](index.md) Return only messages containing chat photos ### Attributes: | Name | Type | Required | Description | |----------|:-------------:|:--------:|------------:| ### Type: [SearchMessagesFilter](../types/SearchMessagesFilter.md) ### Example: ``` $searchMessagesFilterChatPhoto = ['_' => 'searchMessagesFilterChatPhoto']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` {"_": "searchMessagesFilterChatPhoto"} ``` Or, if you're into Lua: ``` searchMessagesFilterChatPhoto={_='searchMessagesFilterChatPhoto'} ```