Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

golang branch: peer not found error when sending any file to the bot #122

Closed
holll opened this issue Dec 3, 2023 · 1 comment
Closed
Labels
todo todo

Comments

@holll
Copy link

holll commented Dec 3, 2023

Is LOG_CHANNEL in the golang version the same thing as BIN_CHANNEL in the python version?
When I forward a message to the bot, I get "ERROR toChatId: peer not found".
This fault is not encountered in the python version

@EverythingSuckz
Copy link
Owner

EverythingSuckz commented Dec 3, 2023

Is LOG_CHANNEL in the golang version the same thing as BIN_CHANNEL in the python version? When I forward a message to the bot, I get "ERROR toChatId: peer not found". This fault is not encountered in the python version

Hi, this is a known issue, the temp fix is sending anything in your LOG_CHANNEL while the bot is running.

Technical reason for this error is that the bot don't have the access_hash to access your LOG_CHANNEL so you need to send something to the logs channel so that the bot can cache the acccess_hash from the NewChannelMessage update and use it later.

@EverythingSuckz EverythingSuckz changed the title about golang version:peer not found peer not found error when sending any file to the bot Dec 3, 2023
@EverythingSuckz EverythingSuckz changed the title peer not found error when sending any file to the bot golang branch: peer not found error when sending any file to the bot Dec 3, 2023
@EverythingSuckz EverythingSuckz added the todo todo label Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
todo todo
Projects
None yet
Development

No branches or pull requests

2 participants