https://github.com/xditya/channelautopost
Telegram bot to auto post messages of one channel in another channel as soon as it is posted, without the forwarded tag.
https://github.com/xditya/channelautopost
Last synced: 10 months ago
JSON representation
Telegram bot to auto post messages of one channel in another channel as soon as it is posted, without the forwarded tag.
- Host: GitHub
- URL: https://github.com/xditya/channelautopost
- Owner: xditya
- License: gpl-3.0
- Created: 2021-01-31T11:50:25.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-07-06T20:00:37.000Z (about 2 years ago)
- Last Synced: 2025-03-29T00:07:35.986Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 208
- Watchers: 6
- Forks: 371
- Open Issues: 3
-
Metadata Files:
- Readme: ReadMe.md
- License: License
Awesome Lists containing this project
README
# Channel Auto-Post Bot
Use the [usermode](https://github.com/xditya/ChannelAutoPost/tree/user) branch, if you want to forward messages without being an admin in the from channel.
This bot can send all new messages from channels, directly to another set of channels (or group, just in case), without the forwarded tag!
## Setting up
* First:
> `APP_ID` and `API_HASH` - Get it from my.telegram.org
> `BOT_TOKEN` - Get it from [@BotFather](https://t.me/BotFather)
> `FROM_CHANNEL` - The IDs of the main channel from where posts have to be copied, split by space. eg: `-100xxxx -100yyyy -100abcd ...`
> `TO_CHANNEL` - The ID of the channel to which the posts are to be sent, split by space. eg: `-100xxxx -100yyyy -100abcd ...`
[](https://heroku.com/deploy?template=https://github.com/xditya/ChannelAutoPost)
* Chose a platform to deploy on:
Heroku/Kintohub/Zeet
Add the above values to the environment vars and deploy the bot.
Local Deploys
- Clone the repo: git clone https://github.com/xditya/ChannelAutoForwarder
- Make a .env file in the root of the repo, like .env.sample and fill in the values.
- Use python3 bot.py to start the bot.
## Usage
Add the bot to both channels with admin permission, and thats it!
All new messages will be auto-posted!!
Visit [@TeamCyphers](https://t.me/TeamCyphers) for help.
## Credits
> [Lonami](https://github.com/LonamiWebs), for [Telethon](https://github.com/LonamiWebs/Telethon).
> [xditya](https://github.com/xditya), me.
> [@ettan_fan](https://t.me/ettan_fan), for the whole idea.