Build the binary using Go's compiler
env GOOS=windows GOARCH=amd64 go build .
env GOOS=linux GOARCH=amd64 go build .
env GOOS=darwin GOARCH=amd64 go build .
Please keep in mind that the following file structure is required:
├── .env
The program will panic if it fails to load .env file
in the .env file:
- TOKEN - > Add your bot token from botfather
- TTL - > Seconds for bot poller
- FILE - > filename for scanning
- USERID - > your userid from @userinfobot in telegram
.env
TOKEN=43897394701:AAFR8SyAp2k474CjpcDwU0sd8Ssr6_Yk9-c
TTL=10
FILE=good.txt
USERID=1241351234
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.