Giter Site home page Giter Site logo

xditya / channelautopost Goto Github PK

View Code? Open in Web Editor NEW
187.0 6.0 351.0 28 KB

Telegram bot to auto post messages of one channel in another channel as soon as it is posted, without the forwarded tag.

License: GNU General Public License v3.0

Python 99.48% Procfile 0.52%

channelautopost's Introduction

Channel Auto-Post Bot

Use the usermode 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
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 ...

Deploy

  • 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 for help.

Credits

Lonami, for Telethon.
xditya, me.
@ettan_fan, for the whole idea.

channelautopost's People

Contributors

buddhhu avatar leeveshkamboj avatar tamilvip007 avatar xditya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

channelautopost's Issues

Filter forward and find replace content

it is possible to implement a message filter, for example, forward messages that begin with a certain phrase "message 1"

another feature would be to replace text before forwarding ex:
(from_channel) original message : (to_channel) changed message

Issue

Bro solve the issue of user branch of this repo please

bug or not

sometimes if there are more than 2 channels, videos large and long duration are not forwarded, only up to channel 2.
but, if send 1 photo it will be forwarded to all channels..

it's different when in 1 post there are many photos / photo groups, they will be separated and become 1 photo per 1 post..

That's my experience using this bot, I don't know if it's a bug or not... but if it's a bug it looks like it can be fixed, btw thanks for reading my message.

Trying to start bot

[ INFO/2023-04-16 13:52:48,492] root: Starting...

[ERROR/2023-04-16 13:52:48,494] root: Environment vars are missing! Kindly recheck.

[ INFO/2023-04-16 13:52:48,494] root: Bot is quiting...

copied .env and filled in info and get that message each time

Find and replace values on forwards.

hi aditya ,
please make filter & repcale for exceptions for multiple words.for exam if find value-a in post descriptions can replace with custom one & can set multi env value for multiple values replacement.
for expert mode if you can set ( must have word/must not have ) mode for can be repost in destination channel , it's so much useful.
it means in must have mode , must in post description find value1 & if can't find bypass that post for repost & vice versa for must not have mode.
waiting for your changes commits :)
finest regards
goodbye

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.