Telegram Send Group Message Bot
π Telegram Send Group Message Bot
π‘ Quick Overview
This single-file Node.js script automates a Telegram user account. It joins public or private groups and drops scheduled text or photo messages without any complicated logic. The whole flow is visible at a glance so newcomers grasp it in minutes.
π Main Uses
π’ Broadcast marketing promos and seasonal deals to multiple groups.
π° Mirror news posts across channels or relay announcements.
π¬ Funnel customer questions into a help chat and send canned answers back.
π§ Requirements and Setup
You only need Node.js, the tdlib binary, an API ID, an API Hash, and two folder paths for session and database, all stored in a dotenv file. No extra build step is required.
π οΈ Configuration and Customization
Everything important sits near the top of the file as clear constants. Edit the interval values, flip the changeProfile flag, or point to different text files and you are done. Because the logic is plain JavaScript you can ask ChatGPT to rewrite or extend any function instantly.
π Real Examples in Action
β’ Place https://t.me/somePublicGroup inside groups.txt and write Check out our latest promo inside messageToSend.txt. Run node bot.js and the sentence appears once each hour in that group.
β’ Add a line like photo.jpg followed by three consecutive minus signs then Summer sale starts now in messageToSend.txt. The image uploads with the caption whenever the timer fires.
β’ Drop a private invite link of the form +AbCdEfGhIjKlMn into groups.txt. The bot imports the invite, joins, and forwards posts right away.
β’ List many invite links in the same file; the sender moves through them in round-robin fashion to respect Telegram rate limits.
β’ Write a dozen catchy sentences in messageToSend.txt; a random one is chosen each time to keep content fresh.
β’ Fill a folder with avatar photos, set changeProfile to true, and the bot picks a new picture before every message.
β’ Clone the folder, point fresh environment variables at another Telegram account, launch both copies, and you have a small fleet running in parallel.
π€ Smooth Integration
The script exports nothing global, so you can wrap it in a larger Node.js application with a standard require or import call. All source code is present and readable, which makes merging, debugging, or extending completely painless.
Find this code on https://fepo.codes
Earn 75% on every sale you make with FEPO CODES
Compatible with both FEPO Membership and standalone sales scripts.
Do you need help ?
Do you need developers?
Source and support