Open Woutvan opened 4 years ago
Hi,
Just installed your appication as a test, but I can't get it working . No idea what i'm doing wrong here :-)
python3 forwardgram.py config.yml-sample File "forwardgram.py", line 27 logger.error(f"Could not find any output channels in the user's dialogs") ^ SyntaxError: invalid syntax
I just did a copy/paste from a Telegram Channel/Group it's name. Or should I work with Channel/Group ID's ?
This is my config file:
api_id: xxxxxx # This has to be an integer. Read more [here](https://core.telegram.org/api/obtaining_api_id) api_hash: 'xxxxxxxxxxxxx' # Long 32 characters hash identifier. Read more [here](https://core.telegram.org/api/obtaining_api_id) session_name: 'forwardgram' # Session name. Only one session (with a unique session name) can run at a time # The channel names that you'd like to forward messages from. # The user running the client must have these channels present on it's dialogs. input_channel_names: - 'Binance English' # The output channel names that the messages will be forwarded to. # The user running the client must have a write access to those channels, and have the channels present on theirs dialogs. output_channel_names: - 'test'
I don't even get to the point where I need to enter my phone number to authenticate against Telegram.
Any hint? Thanks!
Maybe you should try removing the space between the dash "-" and your channel name Here's my config file :
api_hash: 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'
# Long 32 characters hash identifier. Read more [here](https://core.telegram.org/api/obtaining_api_id)
session_name: 'forwardgram' # Session name. Only one session (with a unique session name) can run at a time
# The channel names that you'd like to forward messages from.
# The user running the client must have these channels present on it's dialogs.
input_channel_names:
- 'testgroup1'
# The output channel names that the messages will be forwarded to.
# The user running the client must have a write access to those channels, and have the channels present on theirs dialogs.
output_channel_names:
- 'telebotgroup2'
Hi,
Thanks for your reply. I tried to remove the space between the dash and the channel names but I have the same problem. You posted your config file and it seems you also have the space after the dash symbol. So this could not be the problem I think since it's working for you.
Any other ideas? Or do you know any other github project that is doing the same like yours? I need a working Telegram to Telegram forward... But most of them are outdated or not working (anymore) :-(.
Thanks again !
Can help me? With messages is working very well, but when i'm send sticker in channel dont auto foward.. Can help me?
I too have this issue
I make my config only to listen for 1 channel, but the bot is showing he is lining to 5 channels
but it not working
If its an invalid syntax error, check your python version python -V
. It should be set to 3.6.0+
Hello! Firstly thanks a lot for such useful and understandable repository. Here i have faced with such problem. If someone knows how to fix it pls help, i will be very thanksfull :) ERROR: Could not find any input channels in the user's dialogs
Hi,
Just installed your appication as a test, but I can't get it working . No idea what i'm doing wrong here :-)
I just did a copy/paste from a Telegram Channel/Group it's name. Or should I work with Channel/Group ID's ?
This is my config file:
I don't even get to the point where I need to enter my phone number to authenticate against Telegram.
Any hint? Thanks!