USR
English | 简体中文
Preparing the `Telegram Bot
- Get
Bot Token
: How to create a Bot
Using searchx
- Download
searchx
: Go to GitHub Releases and unzip it - Change
YOUR_BOT_TOKEN
toBot Token
inconfig/usr/config.min.yaml
Log in to Telegram
with the login
command
Start searchx
with the run
command
-c
: path to configuration file, default:config/usr/config.min.yaml
Login to Telegram
./searchx usr login # start with default min config
./searchx usr login -c my/config.yaml # start with specified config
Start Bot
./searchx usr run # start with a min config
./searchx usr run -c my/config.yaml # start with specified config
Index all dialog messages within the specific timestamp
--from
: start timestamp, default is 0--to
: end timestamp, defaults to current timestamp
./searchx usr source # start with a min config, index all messages
./searchx usr source -c my/config.yaml # start with specified config, index all messages
./searchx usr source -c my/config.yaml --from 1661703949 --to 1661903949 # start with specified config, index messages from 2021-09-08 00:00:00 to 2021-09-10 00:00:00
Q: Is there any risk of blocking with userbot
?
A: Yes, but searchx
does not usually cause blocking. searchx
only reads messages, but does not send or edit any messages.
Related link: https://github.com/gotd/td/blob/main/.github/SUPPORT.md#how-to-not-get-banned