Coder Social home page Coder Social logo

forward-client's Introduction

Forward-Client

This is Telegram Messages Forwarder bot by @AbirHasan2005.

Use this at your own risk. I will not be responsible for any kind of issue while using this! Better use a different Telegram Account instead of using Main Telegram Account.

Features:

  • Kang Whole Chat Messages to other Chats.
    • Can cause Telegram Account Ban!
  • Forward From Chat To Chat.
    • Can Forward from Multiple Chats to Multiple Chats :)
    • Automatically forward new messages From Chat To Chat.
  • Bot ๐Ÿ˜
  • Simple & Userfriendly ๐Ÿ˜…

Configs:

  • API_ID - Get from my.telegram.org or @TeleORG_Bot
  • API_HASH - Get from my.telegram.org or @TeleORG_Bot
  • STRING_SESSION - Get this from @StringSessionGen_Bot
  • FORWARD_FILTERS - Filters can be text, video, document, gif, sticker, photo, audio, poll, forwarded. Separate with Space.
  • FORWARD_TO_CHAT_ID - Forward To Chat IDs. Separate with Space.
  • FORWARD_FROM_CHAT_ID - Forward From Chat IDs. Separate with Space.
  • FORWARD_AS_COPY - Forward Messages as Copy or with Forward Tag. Value should be True/False.
  • BLOCKED_EXTENSIONS - Don't Forward those Media Messages which contains Blocked Extensions. Example: mp4 mkv mp3 zip rar. Separate with Space.
  • MINIMUM_FILE_SIZE - Minimum File Size for Media Message to be able to Forward. Should be in Bytes.
  • BLOCK_FILES_WITHOUT_EXTENSIONS - Value can be True/False. If True those files which doesn't have file extension will not be Forwarded.

Commands:

  • !start - Check Bot Alive or Not.
  • !help - Get this Message.
  • !kang - Start All Messages Kanger.
  • !restart - Restart Heroku App Dyno Workers.
  • !stop - Stop Kanger & Restart Service.

Support Group:

Video Tutorial:

YouTube

Deploy Now:

Deploy

Host Locally:

git clone https://github.com/AbirHasan2005/Forward-Client
cd Forward-Client
pip3 install -r requirements.txt
# Setup Configurations in configs.py file!
python3 main.py

Follow on:

forward-client's People

Contributors

abirhasan2005 avatar iamliquidx 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

forward-client's Issues

Unique bridging between channels!

Hi there, Consider a scenario: There is 4 Channel named T01, T02, T03, T04. And desired forward direction from the bot is T01>>T03 & T02>>T04. With the current state if we pass the id's of T01, T02 in Forward from and T03, T04 in Forward to fields, the bot serves in a direction of T01>>T03&T04, T02>>T03&T04. If you can implement the first concept it would be much easier to bridge channels exclusively instead of passing the same posts to the connected targets (which is pretty useless to most of them). Thanks again for this project!

New Features

Hi! Thank you for all the great work, I would like to suggest a couple of new features:

  • Replace (for replace text/link)
  • Blacklist
  • Whitelist
  • Filters (filters media type like image, video, link, etc)
  • Cleaner (like filter but in the opposite way)

Thank you very much <3

Problem

Maine ek tg account create kiya abhi
Uska pyrogram string create krke bot vars m daala to ye error aa rhi h
Maine kai baar string season bna liye
Lekin sbhi m ye problem aa rhi
But old tg account m ye problem nhi aa rhi only new account m aa rhi h
Screenshot_2022-01-17-20-58-07-829_com android chrome

#help

#ERROR: Telegram says: [400 FILE_REFERENCE_EXPIRED] - The file id contains an expired file reference, you must obtain a valid one by fetching the message from the origin context (caused by "messages.SendMedia")

Unable to Forward Message to -1001193659778

What does this mean sir

Thanks @AbirHasan2005 โค๏ธ

#4GB Files

Does this support 4GB files if not please add it ๐Ÿ™๐Ÿป

Thanks for the lovely Repo ๐Ÿ’–

int() argument must be a string

When configuring configs.py, and running main.py I get the following error:
file_ #90

However, if you fix this line like this: API_ID = int(os.environ.get("APP_ID", 996380))
You will get another error on startup: ValueError: Unknown storage engine
file_ #91

Distributor ID: Ubuntu
Release: 20.04
Python: 3.8.10

Bug

when heroku dyno restarts, this program stops and if we restarted it will kang by already kanged files, any solution

Problem with initialization of the app

Hey Abir,

Thank you for this amazing bot. I'm having an issue here while starting the bot.

PS C:\Users\HP\Downloads\Forward-Client-main> python3 main.py
Traceback (most recent call last):
File "C:\Users\HP\Downloads\Forward-Client-main\main.py", line 12, in
from configs import Config
File "C:\Users\HP\Downloads\Forward-Client-main\configs.py", line 7, in
class Config(object):
File "C:\Users\HP\Downloads\Forward-Client-main\configs.py", line 9, in Config
API_ID = int(os.environ.get("10122264"))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

Any chance to have a typo in the APP ID section? Thank you for your help. Have a great day.

Error

Getting error while using !kang command

'ChatMember' object has no attribute 'can_send_messages'

#bug while !kang

2021-09-30T14:57:31.942014+00:00 app[worker.1]: Pyrogram v1.2.9, Copyright (C) 2017-2021 Dan https://github.com/delivrance
2021-09-30T14:57:31.942028+00:00 app[worker.1]: Licensed under the terms of the GNU Lesser General Public License v3 or later (LGPLv3+)
2021-09-30T14:57:31.942028+00:00 app[worker.1]:
2021-09-30T14:57:52.205792+00:00 app[worker.1]: 'NoneType' object has no attribute 'id'
2021-09-30T14:57:52.205807+00:00 app[worker.1]: Traceback (most recent call last):
2021-09-30T14:57:52.205809+00:00 app[worker.1]: File "/app/.heroku/python/lib/python3.9/site-packages/pyrogram/dispatcher.py", line 217, in handler_worker
2021-09-30T14:57:52.205809+00:00 app[worker.1]: await handler.callback(self.client, *args)
2021-09-30T14:57:52.205809+00:00 app[worker.1]: File "/app/main.py", line 50, in main
2021-09-30T14:57:52.205810+00:00 app[worker.1]: elif (message.text == "!kang") and (message.from_user.id == (await client.get_me()).id):
2021-09-30T14:57:52.205811+00:00 app[worker.1]: AttributeError: 'NoneType' object has no attribute 'id'

https://extraimages.net/image/taZoh
https://extraimages.net/image/tazmk
https://extraimages.net/image/taBkR

i was trying to do !kang whole channel but it gives that error. not edited anything directly deployed from your repo

once check images it shows it links successfully FORWARD_FROM_CHAT_ID id but FORWARD_TO_CHAT_ID says none . i cross-checked ids and they are good

i tried do kang in a test channel with 10 videos and it still failed

#suggeetion

Sir As Heroku is nomore going to be ๐Ÿ†“

If you know any alternatives please add them

Thanks for the latest upgrade โค๏ธ๐Ÿ™๐Ÿป๐Ÿ‡ฎ๐Ÿ‡ณ

!kang error

Hello Sir,
First of all thanks for this wonderful repository.

When I use !kang

The message I am getting is

Trying to Forward Now ...

But no files are being forwarded....

Thanks sir โค๏ธ

Error in saved message

Hi, I keep seeing this error message in my saved message
#ERROR: 'NoneType' object has no attribute 'file_name'
If someone post anything in the chat group, then this message will send to my saved message.

Permanent Database, Multiple connections and Lot more...

Hi Abir, First of all thanks for this awesome repo. Please take a look at these missing features if you have time to upgrade this repo.

  • Highest performance (up to 200 msg/min)
  • Forward from many chats to one and vice versa
  • Permanent Database support with MongoDB

Implementation of MongoDB will be very helpful to remember the last forward message id (Especially for Kanging thread) to avoid the incomplete clone of the desired channel(s) after the heroku dyno auto-restart. Yes I know Telegram bans the account without any prompt, but it's hassle-free after the recovery. So please increase the message forward rate to an optimal amount for better performance. And also multiple connection (within channels) feature is a better one too.

Thank you!

New feature

Hy sir esme ek feature add kro do plz humble request hai

Features ye h ki jism msg se owner chahe usi msg se forward process start ho n ki starting se

Plz sir

#SUGGESTION

#suggestion

add an !command to easily add channels to (forward from id) list in Heroku vars as it is tedious to add everytime. Hope you consider my suggestion Sir.

Thanks @AbirHasan2005 โค๏ธ

#error

#ERROR: Telegram says: [400 CHAT_FORWARDS_RESTRICTED] - The chat restricts forwarding content (caused by "messages.SendMedia")

Unable to Forward Message to -1001193659778

I am facing problem with forwarding from a channel, the admin had earlier allowed forwarding so I added the channel ID to my bot, but now he restricted forwarding so I want to remove that I'd from Heroku var but I don't know the id of the channel as it is not displayed here only target id is displayed.

Also I can't check one by one as there are many channels

Thanks @AbirHasan2005 โค๏ธ

features

please add custom captions
like it's replace username to given username
and link to given link

features

add time gap to save ban from telegram like 30 second or customizable

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.