How to auto forward or copy messages of telegram group/channel

Поділитися
Вставка
  • Опубліковано 6 вер 2024
  • I am showing how to use Python to automatically forward or copy specific messages from one group/channel to another group/channel on Telegram.
    👉GET THE COURSE FOR SOCIAL MEDIA AUTOMATION: www.udemy.com/...
    HERE ARE THE LINKS YOU NEED 👇
    ⚫topnotch-progr...
    Let's connect on other platforms👇
    🔵LinkedIn: / rediandev
    🔵Join Telegram Channel: t.me/topnotchp...
    #telegram #telethon #forward

КОМЕНТАРІ • 108

  • @topnotchprogrammer
    @topnotchprogrammer  5 місяців тому +6

    PLEASE BE AWARE WHILE USING THESE SCRIPTS, AND ALWAYS TEST FIRST BEFORE USING IN PRODUCTION!
    I put some effort on these videos so a subscribe would help a lot ❤

  • @tulasisanjay
    @tulasisanjay 4 місяці тому +9

    I would like to Forward or Copy messages from source group to designation group 24/7.
    How to Host the same script on server?

  • @dennism2863
    @dennism2863 4 місяці тому +10

    Bro, i somehow lost my account after using. At least it was my second Account. Probably got banned 😂

  • @ceritadulu05
    @ceritadulu05 2 місяці тому +5

    how to solve this problem ?
    ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

    • @FromBeyoundToTheGrave
      @FromBeyoundToTheGrave 19 днів тому

      Your running this command at the wrong folder, as the output says... Just navigate to the right folder where the reqs file located

  • @user-oc8px1zd2x
    @user-oc8px1zd2x 4 місяці тому +3

    ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'

  • @doitliketim4202
    @doitliketim4202 7 днів тому

    Hey Bro, any ideas on how to run the script for multiple source chats simultaneously? Thanks!

  • @Cloud_TNT
    @Cloud_TNT Місяць тому +1

    I treid to set this up and then my TG number got banned once it was set up. It must not like something about this code.

  • @kibetehud9305
    @kibetehud9305 3 місяці тому +2

    Thanks for sharing the script and a video of the same. It's helped me a lot.

  • @yanir.tzabary
    @yanir.tzabary 4 місяці тому +2

    bot which forwards a specific user’s messages?

  • @ninesar
    @ninesar 4 місяці тому +1

    i get a error when the message tries to send
    An invalid Peer was used.
    can u help? everything else works but it wont forward the messages

  • @alexsandror
    @alexsandror 4 місяці тому +2

    UnicodeEncodeError: 'charmap' codec can't encode characters in position 32-36: character maps to

  • @pocketgear
    @pocketgear 2 місяці тому +1

    can channel owner know that we are forwarding the messages to another one? great work by the way 👍

    • @bussintrade5724
      @bussintrade5724 2 місяці тому +1

      thats my question, did channel owner know that ???

  • @muhammadfitriannoor4372
    @muhammadfitriannoor4372 4 дні тому

    the sc can forward photo?

  • @andrewgrech2458
    @andrewgrech2458 4 місяці тому +1

    Thanks I want to know why error are poping up when I put a message in and pram exit and the list of chat I'd aren't coming up either though I managed to get hold of them

  • @houcinegacem114
    @houcinegacem114 14 днів тому

    Than how to make cleaner filter, forword the message without the photos

  • @jamesgladman211
    @jamesgladman211 18 днів тому

    Hi can you help me when i choose list groups it on gives me the top chat group id and not the rest i get an error code

  • @danxity4132
    @danxity4132 3 місяці тому +1

    Right after I installed the bot and input source and destination of channels my Telegram account got banned immediately

  • @MZgamingYT
    @MZgamingYT 2 місяці тому +1

    Hello, every time i try to write ( pip3 install -r requirements.txt ) and hit enter i see this message ( ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' ) i'm using Windows 11 and i'm so new in vs code and python

  • @weightlossviewer8364
    @weightlossviewer8364 18 днів тому +1

    not found

  • @fxboss6255
    @fxboss6255 2 місяці тому

    this is a great instructional video. TYSM for sharing!! QQ, is there anyway to forward messages from multiple channels to one channel? TIA.

  • @oyuncugamer6159
    @oyuncugamer6159 4 місяці тому +1

    I got banned after runing it. what should ı do?

  • @new_platforms
    @new_platforms 2 місяці тому +1

    can i add multiple destination and how ?

  • @iamchan93
    @iamchan93 4 місяці тому +5

    Thank you for your project! But I want to know, can I forward photos/videos/files rather than text?

    • @misaelluisjuan1546
      @misaelluisjuan1546 Місяць тому

      Yes, you can but need to add some lines to the code.

    • @chriszooker
      @chriszooker Місяць тому

      @@misaelluisjuan1546 any hints on how

  • @severalbowling3935
    @severalbowling3935 5 місяців тому +3

    Lol now that I think about it, this bot can be used for trading signals

  • @andrewgrech2458
    @andrewgrech2458 4 місяці тому +2

    I had to use command python instead of python 3

  • @thegodlike8569
    @thegodlike8569 29 днів тому

    Awesome vid bro, subbed
    One thing tho it forwards msg from 1 group to another but when I try to forward stuff from channel to channel it does not work? any solution to this

  • @Crxplays
    @Crxplays 4 місяці тому

    'pip3' is not recognized as an internal or external command,
    operable program or batch file. error

    • @topnotchprogrammer
      @topnotchprogrammer  4 місяці тому

      Make sure you have python3 installed in your computer, while installing you have to make sure you check the box in the exe setup: Add python to path

  • @jansmit4575
    @jansmit4575 5 місяців тому +2

    I got banned almost instantly after running it, any ideas as to why? I thought bots like this are perfectly legal on Telegram.

    • @SiyaMedia
      @SiyaMedia 4 місяці тому

      That's surprising, I suppose the key is how to make the script run like it's operated by a user

    • @topnotchprogrammer
      @topnotchprogrammer  4 місяці тому +3

      That’s strange, because this bot is actually just doing things that normal user does. Check if your account was brand new or try to use telegram premium.

    • @SiyaMedia
      @SiyaMedia 4 місяці тому

      @@topnotchprogrammer maybe a video that shows when a scraping script is likely to flagged as a bot and available options to make a script seem more human, as in what most likely triggers anti bot software would be cool

    • @oyuncugamer6159
      @oyuncugamer6159 4 місяці тому

      Dude, were you able to open your banned accounts?

    • @AnifreakGedsparrow
      @AnifreakGedsparrow 4 місяці тому

      ​@@topnotchprogrammer hey man, do you think the ban is for forwarding the message or will reading it be a flag for suspicious behaviors as well? I'm planning on modifying this a bit and sending the message on some other platform or chat and not on telegram

  • @kurapati1
    @kurapati1 2 місяці тому

    Hi, When I select Option 1, only few chat lists are shown.
    And this error "UnicodeEncodeError: 'charmap' codec can't encode characters in position 41-42: character maps to ".
    Can someone please help?
    Solution:
    chats_file = open(f"chats_of_{self.phone_number}.txt", "w",encoding="utf-8")

  • @KristjanSaarsalu
    @KristjanSaarsalu 4 місяці тому

    wath therminal you use i like it

  • @commander4494
    @commander4494 2 місяці тому

    Can also forwarded the message if the bot is one is messaging?

  • @yue-qy1jl
    @yue-qy1jl 4 місяці тому +4

    Is it possible to forward messages if I am not the admin of that group?

    • @fs9813
      @fs9813 3 місяці тому +2

      Same question ❓
      You got any way?

    • @itsliszt
      @itsliszt 3 місяці тому

      Yes, as long as you are a member of that group and able to send messages to it

    • @fs9813
      @fs9813 3 місяці тому

      @@itsliszt I'm unable to.
      I am a member in a channel where I can't send messages, I want to forward all those contents to another channel of mine for backup or to save it with me. Is this possible?

  • @johnathanrigby1625
    @johnathanrigby1625 2 місяці тому

    Is it possible to also have this script forward images with the messages?

  • @alexsandror
    @alexsandror 4 місяці тому +1

    how to analyze more than one group?

  • @MaskManReactions2025
    @MaskManReactions2025 2 місяці тому

    It will not run for 24 hours? Is there any way to run that code using the cloud processing?

  • @andrewgrech2458
    @andrewgrech2458 4 місяці тому

    It seems to only work on groups but doesnt accept a channel why is that? How can i fix it

  • @Mateo-ri2gg
    @Mateo-ri2gg 3 місяці тому

    how can i find the code again? not on github anymore?

  • @itsMrH4X
    @itsMrH4X Місяць тому

    Will it forward old messages in the channel

  • @tulasisanjay
    @tulasisanjay 4 місяці тому +2

    How to host that script 24/7

  • @all3sbaba
    @all3sbaba 4 місяці тому +1

    shqipe bravo per keto video faleminderit shumm ❤

  • @dudigureno5356
    @dudigureno5356 4 місяці тому +5

    My account is also banned

    • @NancyShaw-dg7ls
      @NancyShaw-dg7ls 3 місяці тому +1

      But why

    • @Kaizkuo
      @Kaizkuo 3 місяці тому

      ​@@NancyShaw-dg7lsnew accounts

    • @angrymp40
      @angrymp40 2 місяці тому +1

      Bakchodi kroge to , pele bhi jaoge 😔🤣

  • @FxTrait
    @FxTrait Місяць тому

    will the code still run if I am removed from the original channel

  • @goldcandles
    @goldcandles 3 місяці тому

    How can i translate this message forward

  • @TheDeniskater
    @TheDeniskater 5 місяців тому

    How can I replace a custom emoji to another one that I need?

  • @user-cq6nf9fs5v
    @user-cq6nf9fs5v 5 місяців тому +4

    Exactly what I need

  • @quochoandkh
    @quochoandkh 2 місяці тому

    I want to copy from topic id to channel id
    help me

  • @XDsinRX
    @XDsinRX 3 місяці тому

    thanks for the script, it forward only the text without the images, IF you have any solution to forward all include the image i love too, thanks

  • @mittalbaria
    @mittalbaria 20 днів тому

    Do I need to keep my PC on

  • @tips97youtubearsi44
    @tips97youtubearsi44 2 місяці тому

    Is it working while offline?

  • @bakanaman-hd1he
    @bakanaman-hd1he 4 місяці тому +3

    using this 2 accounts dead

  • @greatergodage5219
    @greatergodage5219 5 місяців тому

    I used Windows and it did not work. It said:
    pip3 : The term 'pip3' is not recognized as the name of a cmdlet, function, script file, or
    operable program. Check the spelling of the name, or if a path was included, verify that the
    path is correct and try again.

    • @topnotchprogrammer
      @topnotchprogrammer  5 місяців тому +2

      1. Make sure if you have python3 installed on windows.
      2. Make sure you check ‘add python to path’ while installing python.
      3. An easy way is just to install python 3 from microsoft store

    • @greatergodage5219
      @greatergodage5219 5 місяців тому

      @@topnotchprogrammer Thank you very much!. That worked but another problem came:
      I put a space to separate dot py and dot sync so UA-cam doesn't delete
      python TelegramForwarder .py or python3 TelegramForwarder .py gave this error:
      Traceback (most recent call last):
      File "C:\Users\Ekene\Desktop\Telegram-Autoforwarder-master\TelegramForwarder .py", line 3, in
      from telethon .sync import TelegramClient
      ModuleNotFoundError: No module named 'telethon'

    • @greatergodage5219
      @greatergodage5219 5 місяців тому

      @@topnotchprogrammer Thank you. It worked

    • @greatergodage5219
      @greatergodage5219 5 місяців тому

      @@topnotchprogrammer But I got another issue. It does not list all the chats / groups / channels

    • @cryptoinvesta3084
      @cryptoinvesta3084 5 місяців тому +1

      I’m getting an error when I’m trying to add the chats

  • @user-zl5kt5pw3m
    @user-zl5kt5pw3m 4 місяці тому +1

    Hi. This also works to forwarding videos and photos?

    • @user-zl5kt5pw3m
      @user-zl5kt5pw3m 4 місяці тому +2

      I tried it. It doesn't. That was the single reason I tried :/

  • @alexsandror
    @alexsandror 4 місяці тому +1

    only show the last chat on chat list ID

  • @nmirfanyt
    @nmirfanyt 5 місяців тому

    Can it forward to Forums?

  • @xelsius3263
    @xelsius3263 4 місяці тому +1

    This is exactly what I need! However, when I run the bot, I receive the following error message:
    raise ValueError(ValueError: Could not find the input entity for PeerUser(user_id="here is the user_ID_number") (PeerUser).
    What does that mean? It correctly identified a message I want to forward, but it then raised this error...
    Also, would it in theory be possible to only extract one specific word from the message and forward it, e.g., the second line of the message? This would be amazing.

    • @ninesar
      @ninesar 4 місяці тому

      did u ever figure this out?

  • @MedBenrouan
    @MedBenrouan 3 місяці тому +1

    Your phone number will got banned

  • @Code4kings
    @Code4kings 3 місяці тому

    Very interesting tool, mate.
    You've been a great inspiration to my python journey.
    I've got a similar script that forwards messages using multiple users.
    Awesome stuff

  • @b664s
    @b664s 4 місяці тому

    dose it work in restricted channels ?

  • @muhammeduk8834
    @muhammeduk8834 2 місяці тому

    source code link pls

  • @scarface9417
    @scarface9417 4 місяці тому

    Tools broken

  • @thealbaniancreator
    @thealbaniancreator 5 місяців тому