View Source ExTDLib.Method.SearchOutgoingDocumentMessages (ExTDLib v0.0.4)

Searches for outgoing messages with content of the type messageDocument in all chats except secret chats. Returns the results in reverse chronological order. Returns object_ptr<FoundMessages>.

NameTypeDescription
querystringQuery to search for in document file name and message caption.
limitnumberThe maximum number of messages to be returned; up to 100.

More details on telegram's documentation.