Filter ranked search by public source and excluded text before pagination
This commit is contained in:
@@ -24,7 +24,7 @@ cargo run -p telefind-app -- bot events.jsonl
|
||||
|
||||
The input file is optional. The process identifies its username via `getMe`, then long-polls for incoming messages and sends search results with URL buttons. Type keywords in private chat or use `/search@YourBot keywords` in a group. In a public channel where the bot receives posts, incoming posts and edits update the in-memory index. For channels without a public username, protected posts and unsupported content, the bot skips indexing the message. Telegram does not send ordinary post-deletion notifications via this update stream. An upstream source can supply deletion events. If a reply reached Telegram but its HTTP acknowledgement was lost, retrying an update can send the reply twice.
|
||||
|
||||
Use a leading `type:channel`, `type:group`, `type:bot`, `type:post`, `type:photo`, `type:video`, `type:audio` or `type:file` to filter. Double quotes require a contiguous phrase in one field. Use `/page 2 type:video 摄影` to repeat a query on another page.
|
||||
Use a leading `type:channel`, `type:group`, `type:bot`, `type:post`, `type:photo`, `type:video`, `type:audio` or `type:file` to filter. After the optional type filter, add `from:@username` to restrict the source, or `exclude:广告` to omit titles and bodies containing that normalized text fragment. Multiple exclusions are allowed. Follow the filters with search terms, for example `/search type:video from:@example_feed exclude:广告 相机`. Double quotes require a contiguous phrase in one field. Use `/page 2 type:video 摄影` to repeat a query on another page.
|
||||
|
||||
## Document input and storage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user