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

Sdílet
Vložit
  • čas přidán 30. 03. 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!
    👉Learn how to automate and make money yourself with social media!
    👉Learn python programming and selenium!
    👉Learn how to apply automation in your business!
    👉Join COURSE here: bit.ly/3VwBc6k
    HERE ARE THE LINKS YOU NEED 👇
    ⚫topnotch-programmer.com/how-t...
    Let's connect on other platforms👇
    🔵Join Telegram Channel: t.me/topnotchprogrammer
    🟣Instagram: / redian_
    🔵Twitter: / rediandev
    #telegram #telethon #forward
  • Věda a technologie

Komentáře • 91

  • @topnotchprogrammer
    @topnotchprogrammer  Před 3 měsíci +4

    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 ❤

  • @ceritadulu05
    @ceritadulu05 Před 15 dny +4

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

  • @tulasisanjay
    @tulasisanjay Před 2 měsíci +5

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

  • @iamchan93
    @iamchan93 Před 2 měsíci +5

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

  • @user-cq6nf9fs5v
    @user-cq6nf9fs5v Před 3 měsíci +4

    Exactly what I need

  • @yanir.tzabary
    @yanir.tzabary Před 2 měsíci

    bot which forwards a specific user’s messages?

  • @kibetehud9305
    @kibetehud9305 Před měsícem

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

  • @new_platforms
    @new_platforms Před 11 dny +1

    can i add multiple destination and how ?

  • @KristjanSaarsalu
    @KristjanSaarsalu Před 2 měsíci

    wath therminal you use i like it

  • @commander4494
    @commander4494 Před 12 dny

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

  • @Mateo-ri2gg
    @Mateo-ri2gg Před měsícem

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

  • @andrewgrech2458
    @andrewgrech2458 Před 2 měsíci

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

  • @alexsandror
    @alexsandror Před 2 měsíci +1

    how to analyze more than one group?

  • @nmirfanyt
    @nmirfanyt Před 3 měsíci

    Can it forward to Forums?

  • @TheDeniskater
    @TheDeniskater Před 3 měsíci

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

  • @oyuncugamer6159
    @oyuncugamer6159 Před 2 měsíci +1

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

  • @all3sbaba
    @all3sbaba Před 2 měsíci +1

    shqipe bravo per keto video faleminderit shumm ❤

  • @andrewgrech2458
    @andrewgrech2458 Před 2 měsíci +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

  • @severalbowling3935
    @severalbowling3935 Před 3 měsíci +3

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

  • @tulasisanjay
    @tulasisanjay Před 2 měsíci +1

    How to host that script 24/7

  • @b664s
    @b664s Před 2 měsíci

    dose it work in restricted channels ?

  • @goldcandles
    @goldcandles Před měsícem

    How can i translate this message forward

  • @johnathanrigby1625
    @johnathanrigby1625 Před 10 hodinami

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

  • @fxboss6255
    @fxboss6255 Před 6 dny

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

  • @mdd17a
    @mdd17a Před 3 měsíci +1

    Nice, thx!
    You got an idea how to forward messages if some post will be edited in group 1 and copy this edited post again in group 2 again as new message?

  • @user-oc8px1zd2x
    @user-oc8px1zd2x Před 2 měsíci +3

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

  • @quochoandkh
    @quochoandkh Před 28 dny

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

  • @MaskManReactions2025
    @MaskManReactions2025 Před 7 dny

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

  • @ninesar
    @ninesar Před 2 měsíci +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 Před 2 měsíci +2

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

  • @pocketgear
    @pocketgear Před 11 dny +1

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

    • @bussintrade5724
      @bussintrade5724 Před 6 dny +1

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

  • @XDsinRX
    @XDsinRX Před měsícem

    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

  • @tips97youtubearsi44

    Is it working while offline?

  • @kurapati1
    @kurapati1 Před 10 dny

    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")

  • @dennism2863
    @dennism2863 Před 2 měsíci +3

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

  • @alexsandror
    @alexsandror Před 2 měsíci

    only show the last chat on chat list ID

  • @Crxplays
    @Crxplays Před 2 měsíci

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

    • @topnotchprogrammer
      @topnotchprogrammer  Před 2 měsíci

      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

  • @danxity4132
    @danxity4132 Před měsícem +1

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

  • @user-zl5kt5pw3m
    @user-zl5kt5pw3m Před 2 měsíci +1

    Hi. This also works to forwarding videos and photos?

    • @user-zl5kt5pw3m
      @user-zl5kt5pw3m Před 2 měsíci +1

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

  • @MZgamingYT
    @MZgamingYT Před 19 dny +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

  • @Code4kings
    @Code4kings Před 2 měsíci

    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

    • @shavonda-m5j
      @shavonda-m5j Před dnem

      man, can you share your version with multipe users?

  • @bakanaman-hd1he
    @bakanaman-hd1he Před 2 měsíci +3

    using this 2 accounts dead

  • @scarface9417
    @scarface9417 Před 2 měsíci

    Tools broken

  • @yue-qy1jl
    @yue-qy1jl Před 2 měsíci +4

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

    • @fs9813
      @fs9813 Před měsícem +2

      Same question ❓
      You got any way?

    • @itsliszt
      @itsliszt Před měsícem

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

    • @fs9813
      @fs9813 Před měsícem

      @@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?

  • @greatergodage5219
    @greatergodage5219 Před 3 měsíci

    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  Před 3 měsíci +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 Před 3 měsíci

      @@topnotchprogrammer Thank you very much!. That worked but another problem came:
      I put a space to separate dot py and dot sync so CZcams 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 Před 3 měsíci

      @@topnotchprogrammer Thank you. It worked

    • @greatergodage5219
      @greatergodage5219 Před 3 měsíci

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

    • @cryptoinvesta3084
      @cryptoinvesta3084 Před 3 měsíci

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

  • @xelsius3263
    @xelsius3263 Před 2 měsíci +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 Před 2 měsíci

      did u ever figure this out?

  • @andrewgrech2458
    @andrewgrech2458 Před 2 měsíci +2

    I had to use command python instead of python 3

  • @jansmit4575
    @jansmit4575 Před 3 měsíci +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 Před 2 měsíci

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

    • @topnotchprogrammer
      @topnotchprogrammer  Před 2 měsíci +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 Před 2 měsíci

      @@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 Před 2 měsíci

      Dude, were you able to open your banned accounts?

    • @AnifreakGedsparrow
      @AnifreakGedsparrow Před 2 měsíci

      ​@@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

  • @muhammeduk8834
    @muhammeduk8834 Před 2 dny

    source code link pls

  • @MedBenrouan
    @MedBenrouan Před měsícem +1

    Your phone number will got banned

  • @thealbaniancreator
    @thealbaniancreator Před 3 měsíci

  • @dudigureno5356
    @dudigureno5356 Před 2 měsíci +3

    My account is also banned