voidbar / forwardgram

Forward messages from multiple Telegram channels to one of your own!
154 stars 183 forks source link

AttributeError: 'Chat' object has no attribute 'access_hash' #30

Closed jerung3000 closed 3 years ago

jerung3000 commented 3 years ago

Hi..

When I run this repo..Igot error like this..

Traceback (most recent call last): File "C:\PYTHON\forwardgram\forwardgram\forwardgram.py", line 49, in start(config) File "C:\PYTHON\forwardgram\forwardgram\forwardgram.py", line 22, in start input_channels_entities.append(InputChannel(d.entity.id, d.entity.access_hash)) AttributeError: 'Chat' object has no attribute 'access_hash'

Below is My Config Sample configME.yml

api_id: 999999 # This has to be an integer. Read more here api_hash: 87098fgsd4524353245gsdgdg546 # Long 32 characters hash identifier. Read more here session_name: 'Tforward' # 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:

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:

The channel IDs that you'd like to forward messages from. (You can get a channel ID by forwarding any message from it to @userinfobot , and removing the -100 from the start )

input_channel_ids:

The output channel IDs that the messages will be forwarded to. (You can get a channel ID by forwarding any message from it to @userinfobot , and removing the -100 from the start )

output_channel_ids:

An empty list should be set like this:

input_channel_ids: []