{"id":13815165,"url":"https://github.com/Taosky/telegram-search-bot","last_synced_at":"2025-05-15T07:32:01.709Z","repository":{"id":37866116,"uuid":"149775956","full_name":"Taosky/telegram-search-bot","owner":"Taosky","description":"A telegram group record search bot that solves the problem of direct search inability in languages such as CJK / Telegram 群聊天记录搜索Bot，解决CJK等语言无法直接搜索问题","archived":false,"fork":false,"pushed_at":"2024-07-06T01:55:37.000Z","size":6622,"stargazers_count":429,"open_issues_count":8,"forks_count":56,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-08T19:05:17.877Z","etag":null,"topics":["bot","python-telegram-bot","telegram","telegram-bot","telegram-search-bot","tg"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Taosky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-09-21T14:38:23.000Z","updated_at":"2025-05-06T11:56:57.000Z","dependencies_parsed_at":"2023-12-15T09:48:41.902Z","dependency_job_id":"559b3d89-36c4-4bf4-bff2-27d6f601ce1d","html_url":"https://github.com/Taosky/telegram-search-bot","commit_stats":{"total_commits":165,"total_committers":10,"mean_commits":16.5,"dds":0.2848484848484848,"last_synced_commit":"9ad96dedd37853017dbbc7c5610f2d690706be18"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taosky%2Ftelegram-search-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taosky%2Ftelegram-search-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taosky%2Ftelegram-search-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taosky%2Ftelegram-search-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Taosky","download_url":"https://codeload.github.com/Taosky/telegram-search-bot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254295962,"owners_count":22047179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","python-telegram-bot","telegram","telegram-bot","telegram-search-bot","tg"],"created_at":"2024-08-04T04:03:03.522Z","updated_at":"2025-05-15T07:32:01.656Z","avatar_url":"https://github.com/Taosky.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# telegram-search-bot\n\n[中文文档](docs/zh/readme.md)\n\nA Telegram Bot for searching group chat records by keywords and usernames\n\nTelegram's built-in search supports only whole sentences for languages like CJK, and does not support word segmentation. This project solves the search problem by storing chat records and performing database queries.\n\n### Index\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Update Records](#changes)\n- [Contributors](#contributors)\n- [License](#license)\n\n### Features\n- Searching group chat messages by multiple keywords (with pagination)\n- Locating message positions\n- Command control with restrictions\n- Supporting queries across multiple groups (determining whether the user is a group member)\n- Supporting username search\n- Synchronizing database updates after message edits\n\n![preview1](docs/en/preview.png)\n![preview2](docs/en/full.gif)\n\n### Installation\n\nRefer to [quick-start.md](docs/en/quick-start.md) for general installation instructions.\n\nFor advanced usage, see [advanced-use.md](docs/en/advanced-use.md)\n\n### Usage\n\n- `@YourBot @Username keyword1 keyword2... page` Here are some examples:\n\n  `@YourBot` Display all records, defaulting to page 1.\n\n  `@YourBot * 2` Display all message records on page 2.\n\n  `@YourBot weather 3`  Search for message records containing the keyword `weather` and flips to page 3.\n\n  `@mybot @Taosky weather 4` Search for message records containing the keyword \"weather\" and the group member \"Taosky\" (full name) and flips to page 4.\n\n- `/help`: Get search help.\n\n- `/chat_id`:  Get the numerical ID of the current chat.\n\n### Changes\n\n#### 2024-06-27\n- Fix message leak to non group members([#65 by JasonKhew96](https://github.com/Taosky/telegram-search-bot/pull/65))\n\n#### 2024-03-28\n\n- i18n support (en_US,zh_CN)\n\n#### 2024-03-26\n\n- Give tips when /start failed ([#57](https://github.com/Taosky/telegram-search-bot/issues/57))\n\n\n#### 2023-09-07\n\n- Fixed error when importing historical records\n- Fixed issue with updating edited messages\n\n#### 2023-09-05\n\n- Fixed issue with reading chat IDs when importing historical records\n- Fixed potential incorrect message links in userbot mode ([#41](https://github.com/Taosky/telegram-search-bot/issues/41))\n- Python dependency compatibility\n\n#### 2023-07-08\n\n- Improved logging\n- Added condition to execute corresponding threads only in userbot mode\n\n#### 2023-07-01\n\n- Organized directory files\n- Modified documentation\n\n#### 2023-06-24\n\n- **Happy Dragon Boat Festival!**\n- Added userbot mode\n- Refined documentation\n\n#### 2023-05-17\n\n- Updated package versions\n- Added functionality to search by user\n- Attempted to make documentation clearer\n\n\n\u003cdetails\u003e\n\u003csummary\u003emore\u003c/summary\u003e\n\n#### 2022-11-26\n\n- Optimized historical records import method\n- Resolved memory explosion issue with Python JSON reading\n\n#### 2022-11-23 ([#24](https://github.com/Taosky/telegram-search-bot/pull/24))\n\n- Some optimizations and refinements\n\n#### 2022-11-12\n\n- Built image to ghcr.io ([#22](https://github.com/Taosky/telegram-search-bot/pull/22))\n- Some minor changes, improved configuration and explanations\n\n#### 2022-11-06\n\n- Fixed issue with message links not redirecting correctly\n\n#### 2022-10-31 ([#21](https://github.com/Taosky/telegram-search-bot/pull/21))\n\n- Support for database synchronization after message editing\n- Fixed some bugs\n\n\n#### 2022-10-24 ([#19](https://github.com/Taosky/telegram-search-bot/pull/19))\n\n- Optimized logic for sending /help in inline mode\n- Better permission control\n- Changed usage of quotes when referencing messages\n\n#### 2022-06-15\n\n- Fixed issue with mismatched Chat IDs when importing historical records\n- Fixed issue with duplicate Message IDs\n- Fixed error when importing historical records\n\n#### 2022-02-17\n\n- Records and searches now support multiple groups (database has changed, historical records need to be reimported)\n- User names are now displayed with \"@group\" to distinguish message sources when searching\n- Search results are now filtered based on whether the user is a member of the group\n\n#### 2022-02-13\n\n- WebHook mode and docker-compose\n- Fixed authentication issue in inline mode\n- Fixed error when text is empty\n\n#### 2022-02-08\n\n- Web interface for importing historical messages (port 5006)\n\n#### 2022-01-06\n\n- Dockerized\n\n#### 2021-09-20\n\n- Updated python-telegram-bot library\n- Refactored code, simplified operations\n\n#### 2021-07-03\n\n- Added support for searching multiple keywords\n\n#### 2021-02-04\n\n- Fixed issue with some keyword results not displaying in inline mode (caused by parsing errors with specific characters)\n\n#### 2020-01-11 (V1.0)\n\n- Added ability to import historical message records. (Only available for initializing the database, and cannot be located)\n- Added original message link mode, available for supergroups, allows clicking on links to locate messages\n\n#### 2019-04-27\n\n- Added proxy option (Shadowsocks' socks5 seems to be not working, http works)\n\n#### 2019-04-02\n\n- Fixed repeated reporting time issue.\n- Improved README.\n\n#### 2019-03-03\n\n- Fixed pagination issue in searches.\n\n#### 2019-03-02\n\n- Rewrote a large amount of code, replaced MYSQL database with SQLITE, used ORM, simplified subsequent development and user configuration.\n- Added configuration for excluding IDs\n- Added repetition of images, videos, voice messages, and audio\n- Added command to obtain database of group members\n- Filter robot information during storage\n- Bot username no longer needs to be set manually\n- Fixed issue where users with no permission under administrator mode could not repeat messages.\n\n\u003c/details\u003e\n\n## Contributors\n\n\u003ca href=\"https://github.com/Taosky/telegram-search-bot/graphs/contributors\"\u003e\u003cimg src=\"https://opencollective.com/telegram-search-bot/contributors.svg?width=890\u0026button=false\" /\u003e\u003c/a\u003e\n\n## License\n\n[MIT](LICENSE) © Taosky\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTaosky%2Ftelegram-search-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTaosky%2Ftelegram-search-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTaosky%2Ftelegram-search-bot/lists"}