This is a Node.js Telegram bot that automatically pushes a specified file to one or more GitHub repositories at a set interval. The bot is controlled via Telegram inline buttons and supports multiple users independently.
Set GitHub Token, Username, Repo(s) sequentially via guided prompts
Specify file to push (default: log.md)
Set delay between pushes (seconds)
Start and stop the bot
Runs continuously until stopped
Supports multiple Telegram users independently
User-friendly interface with Telegram inline buttons
Setup
Clone this repository:
git clone https://github.com/xsrazy/GitHub-Auto-Push-by-Telegram.git
cd GitHub-Auto-Push-by-Telegram
Install dependencies:
npm install
Create a .env file and add your Telegram Bot Token:
TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here
Run the bot:
npm start
Usage
Use the Telegram inline buttons to control the bot. The bot will guide you through setting up your GitHub token, username, repositories, file, and delay sequentially.
Main buttons:
⚙️ Settings
▶️ Start Push
⏹️ Stop Push
📊 Status
Settings buttons:
🔑 Set GitHub Token
👤 Set Username
📁 Set Repos
📄 Set File
⏱️ Set Delay
🔙 Back to Main Menu
Notes
The bot writes a message with the current WIB (GMT+7) time into the file before pushing
Each user’s settings and push operations are independent
Make sure the file to push exists in the bot’s directory
Auto Push GitHub Bot by Telegram
This is a Node.js Telegram bot that automatically pushes a specified file to one or more GitHub repositories at a set interval. The bot is controlled via Telegram inline buttons and supports multiple users independently.
Auto Push GitHub Bot by Telegram
Features
Setup
Clone this repository:
Install dependencies:
Create a
.envfile and add your Telegram Bot Token:Run the bot:
Usage
Use the Telegram inline buttons to control the bot. The bot will guide you through setting up your GitHub token, username, repositories, file, and delay sequentially.
Main buttons:
Settings buttons:
Notes
Deploy to VPS/Terminal
Upload the files to your VPS:
SSH into your VPS:
Navigate to the bot directory:
Install dependencies and start the bot:
For running the bot continuously, you can use PM2:
Credits
Created by Xsrazy