Link Search Menu Expand Document

Constructor: channelMessagesFilter

Back to constructors index

Filter for getting only certain types of channel messages

Attributes:

NameTypeRequiredDescription
exclude_new_messagesBoolOptionalWhether to exclude new messages from the search
rangesArray of MessageRangeYesA range of messages to fetch

Type: ChannelMessagesFilter

Example:

$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => Bool, 'ranges' => [MessageRange, MessageRange]];