Taosky / telegram-search-bot

A telegram group record search bot that solves the problem of direct search inability in languages such as CJK / Telegram 群聊天记录搜索Bot,解决CJK等语言无法直接搜索问题
MIT License
356 stars 47 forks source link
bot python-telegram-bot telegram telegram-bot telegram-search-bot tg

telegram-search-bot

中文文档

A Telegram Bot for searching group chat records by keywords and usernames

Telegram'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.

Index

Features

preview1 preview2

Installation

Refer to quick-start.md for general installation instructions.

For advanced usage, see advanced-use.md

Usage

Changes

2024-06-27

2024-03-28

2024-03-26

2023-09-07

2023-09-05

2023-07-08

2023-07-01

2023-06-24

2023-05-17

more #### 2022-11-26 - Optimized historical records import method - Resolved memory explosion issue with Python JSON reading #### 2022-11-23 ([#24](https://github.com/Taosky/telegram-search-bot/pull/24)) - Some optimizations and refinements #### 2022-11-12 - Built image to ghcr.io ([#22](https://github.com/Taosky/telegram-search-bot/pull/22)) - Some minor changes, improved configuration and explanations #### 2022-11-06 - Fixed issue with message links not redirecting correctly #### 2022-10-31 ([#21](https://github.com/Taosky/telegram-search-bot/pull/21)) - Support for database synchronization after message editing - Fixed some bugs #### 2022-10-24 ([#19](https://github.com/Taosky/telegram-search-bot/pull/19)) - Optimized logic for sending /help in inline mode - Better permission control - Changed usage of quotes when referencing messages #### 2022-06-15 - Fixed issue with mismatched Chat IDs when importing historical records - Fixed issue with duplicate Message IDs - Fixed error when importing historical records #### 2022-02-17 - Records and searches now support multiple groups (database has changed, historical records need to be reimported) - User names are now displayed with "@group" to distinguish message sources when searching - Search results are now filtered based on whether the user is a member of the group #### 2022-02-13 - WebHook mode and docker-compose - Fixed authentication issue in inline mode - Fixed error when text is empty #### 2022-02-08 - Web interface for importing historical messages (port 5006) #### 2022-01-06 - Dockerized #### 2021-09-20 - Updated python-telegram-bot library - Refactored code, simplified operations #### 2021-07-03 - Added support for searching multiple keywords #### 2021-02-04 - Fixed issue with some keyword results not displaying in inline mode (caused by parsing errors with specific characters) #### 2020-01-11 (V1.0) - Added ability to import historical message records. (Only available for initializing the database, and cannot be located) - Added original message link mode, available for supergroups, allows clicking on links to locate messages #### 2019-04-27 - Added proxy option (Shadowsocks' socks5 seems to be not working, http works) #### 2019-04-02 - Fixed repeated reporting time issue. - Improved README. #### 2019-03-03 - Fixed pagination issue in searches. #### 2019-03-02 - Rewrote a large amount of code, replaced MYSQL database with SQLITE, used ORM, simplified subsequent development and user configuration. - Added configuration for excluding IDs - Added repetition of images, videos, voice messages, and audio - Added command to obtain database of group members - Filter robot information during storage - Bot username no longer needs to be set manually - Fixed issue where users with no permission under administrator mode could not repeat messages.

Contributors

License

MIT © Taosky