aahnik / tgcf

The ultimate tool to automate custom telegram message forwarding. Live-syncer, Auto-poster, backup-bot, cloner, chat-forwarder, duplicator, ... Call it whatever you like! tgcf can fulfill your custom needs.
https://github.com/aahnik/tgcf/wiki
MIT License
1.34k stars 795 forks source link

help pls on TGCF_CONFIG #242

Closed AmirulAndalib closed 2 years ago

AmirulAndalib commented 3 years ago
admins: []
# when tgcf is run in live mode, the admins can run commands to change the configuration

forwards:
  - source: https://t.me/joinchat/XXXXXXXXXXX
    dest: https://t.me/joinchat/XXXXXXXXX
    # use username or link of the entity

show_forwarded_from: true

plugins:
  filter:
    text:
      blacklist:
  replace:
    text:

is this config ok? i get some error pls help .....Deploying to Heroku

moxli commented 3 years ago

I am using TGCF for the first time, so please take this with a grain of salt.

I think you can't use the joinchat URLs there. You either need the name/username of the channel/user or the channel ID. You can get the channel ID through the following bot "@username_to_id_bot".

You probably also need to put brackets around the destination like this:

forwards:
  - source: https://t.me/joinchat/XXXXXXXXXXX
    dest: [https://t.me/joinchat/XXXXXXXXX]
    # use username or link of the entity
tissole commented 3 years ago

@AmirulAndalib What kind of errors, please give more details or provide a log. Try the solution proposed by @moxli and send feedback. If still not working try to replace the invite links with chat IDs. You can get them by forwarding a file from the source and destination chats to @userinfobot. Then go-to the bot and you will see the chat IDs.