https://github.com/iarsham/sender
Sender for new lines from files such as .txt, etc to the telegram bot
https://github.com/iarsham/sender
golang telebot
Last synced: 7 months ago
JSON representation
Sender for new lines from files such as .txt, etc to the telegram bot
- Host: GitHub
- URL: https://github.com/iarsham/sender
- Owner: iarsham
- Created: 2023-08-30T02:41:17.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-08-30T22:17:53.000Z (about 2 years ago)
- Last Synced: 2025-01-15T07:33:16.544Z (9 months ago)
- Topics: golang, telebot
- Language: Go
- Homepage:
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sender for new lines to telegram bot ✈
## Installation
Build the binary using Go's compiler
## Windows
#### 64 bits
```bash
env GOOS=windows GOARCH=amd64 go build .
```## Linux
#### 64 bits
```bash
env GOOS=linux GOARCH=amd64 go build .
```## macOS
#### 64 bits
```bash
env GOOS=darwin GOARCH=amd64 go build .
```## Usage
Please keep in mind that the following file structure is required:
```bash
├── .env
```
The program will panic if it fails to load .env file### Configuration instructions
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### Example
**.env**
```
TOKEN=43897394701:AAFR8SyAp2k474CjpcDwU0sd8Ssr6_Yk9-c
TTL=10
FILE=good.txt
USERID=1241351234
```## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.