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
Can't forward messages to anyone but myself #3
Comments
@IvanMazzoli About Regarding the other two (but probably applies to the first one too): Does |
Thanks @delivrance, removing -100 did the job! |
Users IDs taken from bots are fine, as soon as you have a conversation with them in your dialogs list. Can you post the full traceback of both calls separately? |
Sure, but now to be sure I've talked with my own other Telegram account and replaced chat_id and public ID.
|
Please post your code, I'll try to replicate this issue tomorrow. |
The basic idea of the script is to forward messages from channels to a specific group, here's the full source code.
|
I've pushed a change that might fix this. Try again your code after you upgrade using You can also do this manually as explained here: https://docs.pyrogram.ml/getting_started/QuickInstallation/#bleeding-edge |
Okay, now using
|
This means you don't have 2977xxxx in your dialogs list (i.e., you have not a conversation with him, yet), do you? |
I thought too this was the error, but this is what I did: |
We figured it out, now I was passing the ID as a String instead of an Int |
@slvsA This is not the place to test whatever you are testing with the browser developer tools. |
I'm trying to forward a message to a group but it doesn't allow me to do it.
The only chat I'm able to forward messages is my own chat (saved messages).
What I've tried:
client.forward_messages(-100129xxxxxxx, chat_id, msg_ids)
to a group, doesn't work.client.forward_messages(446xxx, chat_id, msg_ids)
to my friend, doesn't work.client.forward_messages("@myfriendusername", chat_id, msg_ids)
to my friend, doesn't work. Same without the @.The log file shows this error (it's similare between al cases, changes only the KeyError):
Also, I'm an administrator in the destination group, my friend hasn't blocked me and the key/access_hash is correct.
I'm using Pyrogram V.0.3.3
The text was updated successfully, but these errors were encountered: