https://github.com/jixiaod/telepushx
Telepushx is a message push service that supports sending messages to multiple users for telegram bot.
https://github.com/jixiaod/telepushx
bot push sendmessage telegram
Last synced: 8 months ago
JSON representation
Telepushx is a message push service that supports sending messages to multiple users for telegram bot.
- Host: GitHub
- URL: https://github.com/jixiaod/telepushx
- Owner: jixiaod
- Created: 2024-09-09T06:54:46.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-24T08:10:02.000Z (over 1 year ago)
- Last Synced: 2025-01-24T09:18:36.229Z (over 1 year ago)
- Topics: bot, push, sendmessage, telegram
- Language: Go
- Homepage:
- Size: 75.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TelePushX
Telepushx is a message push service that supports sending messages to multiple users for telegram bot.
## Features
- Send messages to multiple users at the same time
- Send messages limit rate control (Telegram API limit 30 messages per second),if send message too fast, will sleep a while
- Send messages limit time control, if push message not finished, will stop and wait for next time
## Usage
## Configuration
```bash
cp .env.example .env
```
## Run
```bash
go run main.go
```
## Build
```bash
go build -ldflags "-s -w" -o telepushx
```
```bash
./telepushx -help
./telepushx --port 3000 --log-dir ./logs
nohup ./telepushx --port 3000 --log-dir ./logs > /dev/null 2>&1 &
```
## API
### Send Message
```bash
curl -X POST http://localhost:3000/api/push/1
```
### Send Preview Message
```bash
curl -X POST http://localhost:3000/api/preview/1/1234567890
```